Hi ,
Can anyone tell me how to create the session for signout option.
Thanks,
Anitha
session for sign out option
Moderator: General Moderators
Re: session for sign out option
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
-
anishanmugam
- Forum Newbie
- Posts: 5
- Joined: Sat Nov 15, 2008 3:20 am
Re: session for sign out option
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.
- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London
Re: session for sign out option
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.
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.