ID:               16263
 Comment by:       bagginsbh at hotmail dot com
 Reported By:      kur at natur dot cuni dot cz
 Status:           No Feedback
 Bug Type:         Session related
 Operating System: ANY
 PHP Version:      4.3.0-dev
 New Comment:

The only work around I have found is on the first call to start a
session in your application capture that session id. Then pass it in the
url or as a form parameter. After the session_start() call on your next
page, reset the session id to the passed in session id. Also may
consider archiving all session files such that can be parsed at a later
time to extract the key-value pairs.

This bug has been a major, major problem in my clients environment.
This has been the first time I have run into it. It also has nothing to
do with the time of the session as I have had the lost session occur in
less than 2 minutes after session start.

If not executing a session destroy, which will delete the session file
from the temp location, then look at the old session files and recover
the `lost` parameters.


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

[2007-03-15 05:21:59] akk7788 at yahoo dot com

Has a workaround been posted for this yet?  I'm having a similar
problem.

THanks

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

[2007-03-13 06:53:07] bagginsbh at hotmail dot com

Generally occurs during peak server loads. Intermittently, a new
session is created at session_start() call even though the cookie id has
not changed. Old session file remains with associated data. New session
wipes out all key value pairs resulting in lost data.

PHP Version:  4.3.9
Server: Apache 2.0
OS: wsprolinux
kernel: 2.6.9-42

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

[2007-02-20 16:03:58] george at edynamo dot com

same problem here - FC4, PHP 5.0.2 - session files are empty.
possible solution ( sometimes works ) - use session_register insted of
$_SESSION to set a new value to the session

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

[2007-02-19 15:11:11] e at sloven dot net

I have same problem and I have tried all suggested solutions. Problem
still remains.

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

[2007-02-16 20:29:24] general at itpsg dot com

I am having the same problem.  I have tried all the suggestions here. 
One system is fedora core 4 the other is fedora core 5.  Updating the
packages does not help.  Setting charset does not help.  Adding 0; to
the save_path does not help.  The save path has the appropriate
permissions.  The session file is created but always empty.  Using
session_write_close has no effect.  We developed the application, fully
tested, went to deploy and now this is blowing everything up...ouch!

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

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/16263

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

Reply via email to