Re: Sessions just don't work on my machine. (Trying this ag ain)

From: Date: Mon, 24 Sep 2001 16:49:57 +0000
Subject: Re: Sessions just don't work on my machine. (Trying this ag ain)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-68580@lists.php.net to get a copy of this message
On Monday 24 September 2001 18:39, Thomas Deliduka wrote: > On 9/24/2001 12:32 PM this was written: > >> After reloading IE on the PC now the SID constant doesn't > >> echo anything at > >> all. > > > > SID is always defined on the first page request. It is only > > defined on later page requests if cookies are disabled in the > > browser. > > So, I shouldn't use that if I'm depending on SID to display on > pages to pass the session ID. Or what, disable cookie support in > my php.ini? No, SID constant is especially usefull when you don't know if the user accepts cookies or not. SID will have a real value (e.g. PHPSESSID=lk123s....) when you should add it to the url, and will have an empty value when you don't need to deal with it (because it's been stored in cookie). Arpi

« previous php.general (#68580) next »