#17846 [Fbk->NoF]: Session randomly malfunctions

From: Date: Sat, 03 Aug 2002 05:00:12 +0000
Subject: #17846 [Fbk->NoF]: Session randomly malfunctions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15888@lists.php.net to get a copy of this message
ID: 17846 Updated by: php-bugs@lists.php.net Reported By: fabian@ahrberg.se -Status: Feedback +Status: No Feedback Bug Type: Session related Operating System: Linux 2.4 kernel PHP Version: 4.2.1 New Comment: 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". Previous Comments: ------------------------------------------------------------------------ [2002-07-02 22:06:37] sniper@php.net Is session.cookie_lifetime = 0 in your php.ini? ------------------------------------------------------------------------ [2002-06-28 19:39:23] fabian@ahrberg.se Hmm... I spent a whole day looking into this. The sessioncookie is set to die with the browser, and not time-out. HOWEVER: In 99% of the cases the cookie looked just fine but in a few cases the cookie was set for a limited lifetime even though it shouldn't. So I tried to use the function session_cookie_set (or whatever it's called =) ) in case of something mysterious and guess what? Since I set the lifetime to "0" with this function, just before I call session_start, I haven't experineced the problem and no vistor on the site neither... Hmm... so the question is, why does the session-cookie sometimes show up with a limited lifetime, when it in 99% shows up with what it should (till the browsers closes)... hmm ------------------------------------------------------------------------ [2002-06-20 16:15:33] lance@metaldog.co.za I have a similar problem with IE and a server on a local network. I have 4.2.1 running on a dev system and on a live system on the net. Exactly the same code is running on both systems and they have almost identical setups. On the external system, I can maintain session state everytime without problems... On the internal system my IE browser sometimes and sometimes does not maintain a session. Opera or Netscape do not have this problem at all to either system and the session values are being sent properly... With IE, I have noticed that the session id changes on each load of the session_start() so logically it would indicate that its impossible to maintain state if it keeps resetting itself. The odd thing is that the same browser works to the external version of the site which is on a much slower link. This has occured almost every time, but occasionally things will go through for a while and then stop. The problem ONLY happens with IE5.5 and 6 that I can tell. very very frustrating and odd, because the code is working perfectly on non-Ie browsers and even works sometimes with IE so it is almost impossible to try and trace from a coding perspective ------------------------------------------------------------------------ [2002-06-20 08:55:50] fabian@ahrberg.se The problem occurs with mozilla, ie, lynx, diffrent versions, diffrent plattforms. It's REALLY annoying since we run a forum and all kinds of functions where our users really hate to be logged out when they've just finshed a long letter, an auction whatever. ------------------------------------------------------------------------ [2002-06-19 22:50:38] yohgaki@php.net It could be browser's fault. I noticed my IE6 sends 2 cookies for the same cookie name, and PHP couldn't initilize session as a result. And this is _very_ rare. Check what is going on with packet sniffer when it happenned. It may be browser's fault. ------------------------------------------------------------------------ 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/17846 -- Edit this bug report at http://bugs.php.net/?id=17846&edit=1

« previous php.bugs (#15888) next »