#29452 [Com]: Session vars lost on changing page

From: Date: Fri, 17 Aug 2007 18:00:28 +0000
Subject: #29452 [Com]: Session vars lost on changing page
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-116260@lists.php.net to get a copy of this message
 ID:               29452
 Comment by:       jpveilleux at stylishdesigns dot net
 Reported By:      gattas at yahoo dot com
 Status:           No Feedback
 Bug Type:         Session related
 Operating System: Win XP
 PHP Version:      5.0.0
 New Comment:

I'm not sure but it might be that you need to start your session within
every page that you use your session variables.

If this is not the problem then disregard this comment :)


Previous Comments:
------------------------------------------------------------------------

[2004-08-10 01:00:11] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2004-08-02 15:48:59] tony2001@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip



------------------------------------------------------------------------

[2004-08-02 15:45:06] gattas at yahoo dot com

Where can i found the August 2 CVS check?
Regards.

------------------------------------------------------------------------

[2004-08-02 15:17:36] alex at avannaproductions dot com

Well my problem was fixed with the August 2 CVS check-
ins by Sascha Schumann.

------------------------------------------------------------------------

[2004-07-30 16:47:13] alex at avannaproductions dot com

I have a similar problem on MacOS X. Not sure if it is 
related. Using 5.0.0 release, all is well, however in 
the CVS releases the following problem occurs. The first 
time I load a page with this code:

session_start();
$_SESSION[c]++;
echo "test: $_SESSION[c]";

It sets a cookie for the session and echoes "test: 1". 
When I reload the page, instead of getting "test: 2", 
the browser refuses to load the web page and reports 
"unable to retrieve any data from location." I isolated 
the problem line to session_start(), which means there 
is simply a bug in the *re*opening of a session. If I 
reinstall the 5.0.0 release, while changing nothing 
else, it works as expected once again.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/29452

-- 
Edit this bug report at http://bugs.php.net/?id=29452&edit=1


Thread (7 messages)

« previous php.bugs (#116260) next »