Re: HTTP_Session-0.1 (beta): use of session_unregister()

From: Date: Fri, 14 Feb 2003 14:13:47 +0000
Subject: Re: HTTP_Session-0.1 (beta): use of session_unregister()
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-13283@lists.php.net to get a copy of this message
Demian Turner wrote:
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(). But why a cookie cannot be set? Even if I use output buffering?
What ini option should I alter in my '_init()' to make it working? Thanks.
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


« previous php.pear.dev (#13283) next »