Re: HTTP_Session-0.1 (beta): use of session_unregister()
| From: | Alexander Radivanovich | Date: | Fri, 14 Feb 2003 13:04:59 +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-13278@lists.php.net to get a copy of this message | ||
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.comThank you, Demian, I will do this way. I think there is another problem with sessions: when I start a session with the cookies enabled at the first time I'm getting my pages rewritten with trans_sid even if the session is NOT cookieless... On the next page load url are not rewritten and everithing is ok. Is that correct behavior? Thanks, Alexander