note 31744 deleted from function.session-destroy by sniper
| From: | sniper@php.net | Date: | Fri, 17 Oct 2003 05:17:34 +0000 |
| Subject: | note 31744 deleted from function.session-destroy by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-58743@lists.php.net to get a copy of this message | ||
Note Submitter: prakash_shekade@yahoo.com
----
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