Click to See Complete Forum and Search --> : cookies that last one session


XTI
11-17-2006, 08:12 PM
Hi ppl
1. I need to set coockies that are valied for only one session. How do you do it?
2. Person might want to log off and log on again as a different mamber (say an admin logs off as himself and log in as a junior staff to fix a problem) I need o terminate the old coocke and set a new one in this case. How do you do it?
Thanks a bunch

NogDog
11-17-2006, 08:54 PM
If you're using PHP sessions to control login access, take a look at the example on the session_destroy (http://www.php.net/session_destroy) page.

jignesh1
11-17-2006, 10:32 PM
@ nogDog
im new at php i wanted to know how to use the session and cookie togather
i mean i want cookie and session to ppl to browser the pages
after he is asked the pages