ID:               43579
 User updated by:  assid at assid dot com
 Reported By:      assid at assid dot com
 Status:           Open
 Bug Type:         Session related
 Operating System: Debian etch
 PHP Version:      5.2.5
 New Comment:

Okay did even more testing.
Apparently it has nothing to do with the postgres library, it maybe a
co-incidence it happens MORE with 8.3 libraries however.

What happens is when you keep going through squirrelmail, randomly
clicking and random idle times (perhaps with a server load thats
low-medium), it just randomly says session time out.

However, what the session is not destroyed, as, once you click on any
folder on the left frame, your back in.

>From what I can guess is that the php session engine doesnt load the
session file in time, and the script gets a session not found/expired.
As this problem is random but very frequent.


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

[2008-02-24 17:11:34] assid at assid dot com

Okay we finally had to upgrade the production box due to security
requirements. So we did quite a bit of tests to get to the bottom of
this.

We currently have Postgres 8.2.5 and 8.3 installed on the system (we
keep n-1 where n is the current system and the last server edition prior
to that).  - This is related, and you will understand why in just a
minute.

We first re downloaded the tarballs, as of today. And compiled it
against pg 8.2.5. We then tried squirrelmail (configured for use with
flat files, not databases or anything). Sessions work perfect.

We then recompiled against 8.3, and went back to squirrelmail for the
test (leave the squirrelmail active on any page, wait 3-5 minutes,
randomly clicking, etc). This time we end up with session timeouts. It
was a bit hard to believe thats the reason, so recompiled against 8.2.5
once again, and again this worked perfect.

Thinking it could be because of pdo, we disabled postgres' pdo
extension and tried again. But this didnt help either. 

Once again, recompiled for 8.2.5 and its still working.

No other changes were done to the configuration of php.ini/squirrelmail
 or apache. No third party modules are added to php.ini such as ioncube
eaccelerator etc.

As this is a production box, we decided to keep the 8.2.5 client
libraries even tho 8.3 is the server in use.

The config.nice is as follows, and yes I am aware certain options have
been deprecated

#! /bin/sh
#
# Created by configure

CFLAGS='-march=prescott -O2 -pipe -fomit-frame-pointer' \
CPPFLAGS='-I/usr/local/expat/' \
LDFLAGS='-L/usr/local/expat/' \
'./configure' \
'--with-apxs2=/usr/local/apache2/bin/apxs' \
'--with-mysql=/usr/local/mysql' \
'--with-mysqli=/usr/local/mysql/bin/mysql_config' \
'--with-pgsql=/usr/local/pgsql' \
'--with-pdo-mysql=/usr/local/mysql' \
'--with-pdo-pgsql=/usr/local/pgsql' \
'--with-zlib' \
'--with-pear' \
'--with-flatfile' \
'--with-jpeg-dir=/usr' \
'--with-gd' \
'--enable-gd-native-ttf' \
'--with-ttf' \
'--with-xml' \
'--with-mhash' \
'--with-mcrypt' \
'--enable-calendar' \
'--enable-ftp' \
'--enable-wddx' \
'--with-filepro' \
'--with-bz2' \
'--with-curl' \
'--with-gettext' \
'--with-pdf' \
'--with-openssl' \
'--with-session' \
'--with-imap=/usr/src/imap-2006h' \
'--with-imap-ssl' \
'--enable-bcmath' \
'--enable-mbstring' \
'--enable-sockets' \
'--enable-track-vars' \
'--enable-trans-sid' \
'--enable-magic-quotes' \
'--enable-inline-optimization' \
"$@"

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

[2008-02-11 03:45:29] jsnyxx at gmail dot com

We've found similar problems -- see our report here:

http://xcache.lighttpd.net/ticket/163

(We initially thought that it was Xcache, but that doesn't seem to be
the case now).

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

[2008-02-05 08:04:13] poil at quake dot fr

I got the same issue;

I have a variable $_SESSION['S_num_content'] who got reseted randomly.

I have a small navigation div who is refresh by ajax. I increment or
decrement the value of $_SESSION['S_num_content'] for limiting my SQL
request to "x, x+10".
This browsing work correctly.

When choosing link in this menu for displaying the news (not ajax, full
webpage refresh), sometime session is lost value (1 clic of 5). If I
navigate very slowly, the session is less lost (1 clic of 10 or 20)

My english isn't very good for explain it; I go to try to create a
small parts of code who do the same things.

You can see it on http://www.teewars.net
Clic on "<< Précédent" one time,
Select an article in the same menu
sometime the list of menu stay where it should be sometime not.

Before changing to php 5.2.5 I don't have this issue. I was in php 4.x
before my webhoster upgrade my hosting.

Best regards

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

[2007-12-21 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, 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".

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

[2007-12-13 09:19:31] [EMAIL PROTECTED]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.




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

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/43579

-- 
Edit this bug report at http://bugs.php.net/?id=43579&edit=1

Reply via email to