#17846 [Com]: Session randomly malfunctions
| From: | rossr at reactive dot com | Date: | Wed, 21 Aug 2002 01:47:02 +0000 |
| Subject: | #17846 [Com]: Session randomly malfunctions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-17389@lists.php.net to get a copy of this message | ||
ID: 17846
Comment by: rossr@reactive.com
Reported By: fabian@ahrberg.se
Status: No Feedback
Bug Type: Session related
Operating System: Linux 2.4 kernel
PHP Version: 4.2.1
New Comment:
I'm exeriencing the same bug, where the session randomly dissappears
and the user is logged out of our site. This appears to be happening
across different browsers and platforms as previously mentioned.
The site is hosted on the same OS (Linux 2.4 Kernel) but the version of
PHP is 4.2.2
The setting for "session.cookie_lifetime" is set to 0 in our php.ini
file.
Previous Comments:
------------------------------------------------------------------------
[2002-08-03 01:00:12] 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-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.
------------------------------------------------------------------------
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