Page 1 of 1
session for sign out option
Posted: Mon Nov 17, 2008 11:17 pm
by anishanmugam
Hi ,
Can anyone tell me how to create the session for signout option.
Thanks,
Anitha
Re: session for sign out option
Posted: Mon Nov 17, 2008 11:43 pm
by califdon
You'll have to ask a more specific question. If you want to learn about sessions, I suggest that you read
http://www.tizag.com/phpT/phpsessions.php
Re: session for sign out option
Posted: Tue Nov 18, 2008 3:10 am
by anishanmugam
While clicking signout option it should redirect to the home page also it should clear the values of existing username and password which is in home page.
Re: session for sign out option
Posted: Tue Nov 18, 2008 3:22 am
by aceconcepts
One way to do it would be to create a script named logout.php (or signout - whatever you like).
Have your logout button link to logout.php.
Within this script unset all the necessary session variables or if needs be you could destroy the entire session.
You'll then need to take the user back to the login page / home page.
Now that's your logic - all you need to do now is put it into practice.