Re: sessions failing to persist

From: Date: Mon, 03 May 2004 18:49:17 +0000
Subject: Re: sessions failing to persist
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-185229@lists.php.net to get a copy of this message
From: "Michael R. Wayne" <phpuser@wayne47.com> > Log shows: "GET /g/xxx.php?PHPSESSID=52a504d36a834ea747793d3fb61908ca&field=foo HTTP/1.1" > Browser shows: > # Note on the following line that the sessionID was not preserved > Stage:0 SessionID: 06d6ff28592b54f42dfb7cef6a56780e Can you verify what your session.name setting is in php.ini? It should be "PHPSESSID". I know you're using auto-start sessions, but could you try session_start($_REQUEST['PHPSESSID']); at the beginning of the page? It's very odd (as you already know) that you'll request xxx.php?PHPSESSID=abcd and get "defg" for the session_id() on the page. The session isn't realizing that you're passing an id value. Even when it "seems" to persist, session_id() returns "defg" while the $_REQUEST array still shows "abcd"... very odd. ---John Holmes...

« previous php.general (#185229) next »