note 31744 added to function.session-destroy

From: Date: Fri, 02 May 2003 08:51:59 +0000
Subject: note 31744 added to function.session-destroy
Groups: php.notes 
Request: Send a blank email to php-notes+get-47375@lists.php.net to get a copy of this message
There was a problem with my shopping cart due to sessions. I could see the itmes in my cart by going "BACK" on my browser after checkout. Just calling session_destroy() and session_unset() doesn't work. You need to delete the cookie at the client end. I tried all different ways to kill the session as given in comments. I found that this code really worked for me, as I expected. session_unset(); setcookie (session_name(), '', (time () - 2592000), '/', '', 0); session_destroy(); Thanks to "neoh ". Prakash -- http://www.php.net/manual/en/function.session-destroy.php http://master.php.net/manage/user-notes.php?action=edit+31744 http://master.php.net/manage/user-notes.php?action=delete+31744 http://master.php.net/manage/user-notes.php?action=reject+31744

« previous php.notes (#47375) next »