ID: 19029 Comment by: wieri420 at planet dot nl Reported By: rossr at reactive dot com Status: No Feedback Bug Type: Session related Operating System: Linux (2.4 Kernal) PHP Version: 4.2.2 New Comment:
POSSIBLE SOLUTION: I had exactly the same problem.. After nearly 2 month of being frustrated a friend of mine discovered the problem. The cause of it was that I used sessions AND cookies in one script. I commented all the 'setcookie' lines and all other cookie functions in my script and .... the problem vanished!! So if you have this problem check your use of cookies and sessions in one script.. I recommend to use only session variables if possible. Previous Comments: ------------------------------------------------------------------------ [2002-10-18 03:32:54] ivo at ibuildings dot nl [18 Oct 3:29am] [EMAIL PROTECTED] 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) ------------------------------------------------------------------------ [2002-10-14 19:26:53] php-bugs at lists dot php dot 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] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] Dupe of #19022. ------------------------------------------------------------------------ [2002-08-22 07:27:09] phpbugs at mx4k dot 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 ------------------------------------------------------------------------ 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/19029 -- Edit this bug report at http://bugs.php.net/?id=19029&edit=1
