RE: [PHP] Session data getting lost

From: Date: Thu, 18 Sep 2003 07:59:28 +0000
Subject: RE: [PHP] Session data getting lost
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-162961@lists.php.net to get a copy of this message
> > * Thus wrote Rich Gray (rich@f1central.net): > > Well a functon that doesn't work under certain conditions should be > > deprecated IMO ... I haven't used it for a long time now... > > this makes absolutly no sense. So if I use a function improperly, > it should become deprecated? Er ...I'm not using it improperly I'm just not using it at all. Why? Because it behaves differently in different operating conditions. Sure I could write extra code to detect the operating conditions but what's the point? If globals are off you can't use it as it doesn't work... The manual seems to make it pretty obvious to me that it should be avoided and even mentions the function is deprecated in a code example... > > session_register() is used in cases where you haver register_globals > on; it is not useed when it is off. So are you happy to use session_register() in your code?

« previous php.general (#162961) next »