note 25903 deleted from function.session-destroy by didou
| From: | didou@php.net | Date: | Sun, 18 May 2003 03:27:35 +0000 |
| Subject: | note 25903 deleted from function.session-destroy by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-48377@lists.php.net to get a copy of this message | ||
Note Submitter: buvry@enseeiht.fr
----
For information, I use session_destroy in order to finish a session and i want to begin a new
session with a different session ident.
My solution is :
$_SESSION= array();
unset($_GET[session_name()]);
session_destroy();
session_start();
Without unset, the session ident remains the same. I haven't seen it anywhere.