ID: 17846
Comment by: simon at infomaniak dot ch
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'm experiencing the same problem too.
I've noticed that even if it was set to 0 in php.ini,
session.cookie_lifetime had random values at session start.
I'm now trying to force it to 0 using
<i>ini_set( 'session.cookie_lifetime', 0);</i>
before the first session_start(). It seems to work but I'm not really
sure for now, I have to test it more.
Previous Comments:
------------------------------------------------------------------------
[2003-07-09 09:18:57] wieri420 at planet dot nl
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...
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
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