ID:               17846
 Comment by:       wieri420 at planet dot nl
 Reported By:      fabian at ahrberg dot se
 Status:           No Feedback
 Bug Type:         Session related
 Operating System: Linux 2.4 kernel
 PHP Version:      4.2.1
 New Comment:

I had the random faillure of sessions too.

Are you using cookies and sessions in one script?
Try commenting all cookie related functions (setcookie etc..) and see
if it solves the problem.

It solved the session problem for me.
I'm curious if it solves the problem for others too...


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

[2002-08-20 21:47:01] rossr at reactive dot com

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.

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

[2002-08-03 01:00:12] 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-07-02 22:06:37] [EMAIL PROTECTED]

Is session.cookie_lifetime = 0 in your php.ini?


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

[2002-06-28 19:39:23] fabian at ahrberg dot 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 at metaldog dot co dot 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

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

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

Reply via email to