Re: session_destroy
| From: | Peter Hoskin | Date: | Wed, 19 Apr 2006 01:53:06 +0000 |
| Subject: | Re: session_destroy | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-234251@lists.php.net to get a copy of this message | ||
I've also had this issue from time to time. Used the following to destroy it under all circumstances.
if (isset($_COOKIE[session_name()])) {
setcookie(session_name(), '', time()-42000, '/');} session_destroy(); Shannon Doyle wrote:
Hi People, Trying to get a session to destroy correctly, however the darn thing just refuses to destroy. I call the following in a separate webpage in a effort to destroy the session, only to find that the session still persists. <?php session_start(); session_unset(); session_destroy(); Header("Location: index.php"); ?> Any help would be appreciated. Cheers, Shannon