Re: HTTP_Session-0.1 (beta): use of session_unregister()
| From: | Demian Turner | Date: | Fri, 14 Feb 2003 13:25:00 +0000 |
| Subject: | Re: HTTP_Session-0.1 (beta): use of session_unregister() | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-13282@lists.php.net to get a copy of this message | ||
this usually happens when a cookie cannot be set, PHP defaults to the trans_sid. could be to do with your ini_set in your _init().
cheers,
Demian
http://www.phpkitchen.com
Demian Turner wrote:
Alexander, great class, I think PEAR has been needing this for some time ;-) In my experience using session_register() with the $_SESSION super-global array can be unreliable, the latest PHP manual seems to confirm this. <snip> If you are using $_SESSION (or $HTTP_SESSION_VARS), do not use session_register(), session_is_registered() and session_unregister(). </snip> Perhaps using unset($sessVarName) in your unregister() method is preferable? cheers, Demian http://www.phpkitchen.com