faqts : Computers : Programming : Languages : PHP : Installation and Setup : Sessions & Cookies

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

24 of 62 people (39%) answered Yes
Recently 3 of 10 people (30%) answered Yes

Entry

How do I delete a session cookie?

Sep 4th, 2000 18:50
Craig Fratrik, Ben Munoz, http://www.php.net/manual/ref.session.php http://www.php.net/manual/function.session-destroy.php


First, session cookies delete themselves as soon as the user closes the 
browser.  To delete this information during the user's stay at your 
site, you use the session_destroy() function.  It must be used after 
the session_start() just like session_register(), i think.  By using it 
afterward, it works for me.  Hope I've been of help.
Craig