Kod
Q: I already have a web application which would do authentication for user,
how can I integrate openwebmail with it so the user doesn't need to login
again when click the openwebmail link?
A: All you have to do is to write a very simple auth_xxx.pl which checks if
a user have already logined on your web application through server session
file or cookies.
And the link to call the openwebmail.pl should be
http:/xxxx/openwebmail.pl?loginname=USERNAME&password=dummy
Znalazlem cos takiego.... tylko ze mam pytanie
W ktorym momencie mam odwolac sie do tego urla ?
Mechanizm dziala tak
podajemy ;ogiin pass ->przydzielona zostaje zmienna $_session['zalogowany']='tak' -> dostep do innych rzeczy na stronei dostepnych dla zalogowanych
Czyli mam rozumiec ze jesli user klika na link "poczta" mam sprawdzic czy $_SESSION['zalogowany']=='tak'
i includowac ten url w odpowiednim miejscu ?
help bo sie nieco zgubilem