[thelist] php: session help

Nemesis nemesis at nemesis1.f2o.org
Fri Jul 18 19:00:32 CDT 2003


Chris W. Parker wrote:

>Is it possible to restart a session and create a new session id without
>waiting for the session to time out or have all browser windows closed?
>  
>
|If you are using PHP 4.3.2 use session_regenerate_id() to generate a 
new session id.
|

>I've tried session_destroy() and session_unset() but neither have
>worked.
>
You have to empty the cookie, pre 4.3.2. There are some good examples at

http://www.php.net/manual/en/function.session-destroy.php

HTH
Gary


-- 
The Nemesis Project 
http://nemesis1.f2o.org
One Stop CSS




More information about the thelist mailing list