Re: Help with sessions and netscape.

From: Date: Tue, 02 Jan 2001 22:41:58 +0000
Subject: Re: Help with sessions and netscape.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-32390@lists.php.net to get a copy of this message
Hi Chad! On Fri, 29 Dec 2000, Chad Day wrote: > I recently moved my site to another server running php 4.0 b2. In IE, it > works fine. In NS, the sessions simply are not being registered, which is a > huge problem. Why a browser makes a difference in a server side scripting > language baffles me. I've seen this question asked when I did a search on > Google, but I haven't really been able to find an answer. I tried turning > track_vars on and register_globals on in an .htaccess file since they were > on on my old server, but that hasn't helped. > > Anyone? :( > One problem I noticed with NS is when you do redirects and send cookies at the same time. If you start your session then do a redirect. That might be the problem, cause the Cookie header goes after the Location header and is (AFAICT) ignored. If so, try putting the header('Location...') before session_start() or something that starts it. Other than that, how do you know it works with IE? Maybe you can track the headers send by the web server? -- teodor

« previous php.general (#32390) next »