#19029 [Com]: Session data randomly disappearing and logging users out
| From: | ivo at ibuildings dot nl | Date: | Fri, 18 Oct 2002 08:32:55 +0000 |
| Subject: | #19029 [Com]: Session data randomly disappearing and logging users out | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-22743@lists.php.net to get a copy of this message | ||
ID: 19029
Comment by: ivo@ibuildings.nl
Reported By: rossr@reactive.com
Status: No Feedback
Bug Type: Session related
Operating System: Linux (2.4 Kernal)
PHP Version: 4.2.2
New Comment:
[18 Oct 3:29am] ivo@ibuildings.nl
I'm experiencing this too, and I might have some usefull feedback!
I don't see the 'failed to write' messages. But I do have the random
loss of sessions. I've modified my script so I get an email with all
GET_VARS, SERVER_VARS etc. whenever the sessiondata is lost.
I found a very weird thing with respect to the session cookie. It
contained:
HTTP_COOKIE = 1; PHPSESSID=f1faf3374d562e8738f64e7e7e030972;
pollvoted[1]=1; (... some other data left out for privacy reasons);
PHPSESSID=842be4994a9c424fd7d4f9f8049aadc9
There are two separate PHPSESSID's in the same cookie! Maybe one of
the
too is indeed invalid (no session date) How is this possible?
(I originally submitted this comment to bug 19022, but this bug is
probably a better place)
Previous Comments:
------------------------------------------------------------------------
[2002-10-14 19:26:53] php-bugs@lists.php.net
No feedback was provided for this bug for over a month, 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".
------------------------------------------------------------------------
[2002-09-26 12:09:12] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
------------------------------------------------------------------------
[2002-08-22 07:43:45] sander@php.net
Dupe of #19022.
------------------------------------------------------------------------
[2002-08-22 07:27:09] phpbugs@mx4k.com
hi, try to turn on error logging to a file in php.ini. I'm experiencing
the same problem and my logfile is filled with:
[22-Aug-2002 13:24:08] PHP Warning: Failed to write session data
(files). Please verify that the current setting of session.save_path is
correct (/tmp) in Unknown on line 0
[22-Aug-2002 13:24:29] PHP Warning: Failed to write session data
(files). Please verify that the current setting of session.save_path is
correct (/tmp) in Unknown on line 0
[22-Aug-2002 13:24:40] PHP Warning: Failed to write session data
(files). Please verify that the current setting of session.save_path is
correct (/tmp) in Unknown on line 0
http://bugs.php.net/bug.php?id=19022
------------------------------------------------------------------------
[2002-08-21 21:34:47] rossr@reactive.com
For the most part our sessions work fine. However at random times the
session data appears to just disappear and the user is logged out. They
can then log straight back in no problems and create a new session.
Due to it's random nature this is really hard to track down and provide
anything that can replicate it. It happens across different browsers
and platforms.
PHP is running as the CGI version with Apache/1.3.19 (Unix) and the
site has FrontPage/5.0.2.2510 extensions.
The session settings for our PHP.ini file is as follows:
Directive Local Value Master Value
=========================== =========== ==============
session.auto_start Off Off
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_trans_sid 1 1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19029&edit=1