Log in

View Full Version : Isn't logging in and out all about sessions??



shachi
09-05-2006, 04:37 PM
Hi all,
I was wondering if anyone could tell me that isn't logging in and logging out is all about setting and destroying sessions?? When you log in you set a session with value "loggedin" and check if that session exists(allowing the user to access a page) and when you log out you just destroy that session?? I have been curious about this for a while but if anyone could help me with this, it would simply be great.

Thanks in advanced!!!

Twey
09-05-2006, 05:01 PM
It doesn't have to be done that way, but that's probably the best way to do it, yes :)

shachi
09-05-2006, 05:21 PM
Oh, thanks Twey!!! Now I think that I should go on with my authentication script. Thanks again!! :)