note 7367 deleted from function.session-destroy by jimw

From: Date: Fri, 07 Dec 2001 01:06:55 +0000
Subject: note 7367 deleted from function.session-destroy by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-21749@lists.php.net to get a copy of this message
As noted earlier, this function only destroys the data, not the cookie. I found this to work for me. <pre> session_destroy(); $p = session_get_cookie_params(); setcookie(session_name(), "", 0, $p["path"], $p["domain"]); </pre>

« previous php.notes (#21749) next »