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:

I have to downgrade to 5.2.4, as this is a production box. Please let
me know when you are available, and I will load the necessary module at
that moment.

I am also available on IRC / freenode as Assid


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

[2008-02-25 13:12:46] assid at assid dot com

With regards to session files and squirrelmail

I checked the part that you told me. The headers look exactly the same.
Sometimes I get the session kicking me out. The headers during which,
looks exactly the same as the ones when it doesnt kick me out. However,
sometimes i just rightclick in that frame and reload frame and it works,
or i click on any of the available imap folders on the left side.

During the time it kicks me out, the session file still exists, would
explain WHY i can still continue using AFTER that. 

from my previous test and this into consideration, i would GUESS its
something to do with session generation / session file handling or
something related to this.

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

[2008-02-25 08:30:07] assid at assid dot com

okay here you go, 5 hours of sleep helped a bit.

http://spherelinx.com/session.php
Now refresh this slowly (i mean one F5 per second or 2 seconds), till
you hit something like 8-10.

Now press F5 rapidly (dont hold), like 5-8 times. You end up with a new
counter. 

Refresh this counter slowly, and again repeat the above step. Sometimes
you get it to go back to the older counter.

reproduce code: http://spherelinx.com/session.phps
phpinfo - http://spherelinx.com/phpinfo.php

>From my guess, session_name fails or causes some kind of glitch

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

[2008-02-25 01:28:12] [EMAIL PROTECTED]

Many people, including myself, are running SquirrelMail quite fine on
5.2.5 without any sort of session problems.  The fact that it also
happens in other applications points to a general problem on your end. 
Sessions are really simple.  There are 3 parts to an active session.

1. Your browser sends a session cookie
2. The PHP script that receives the cookie calls session_start()
3. session_start() reads the session data from the session data

So, to debug this, look at each part.  Install something like the
LiveHTTPHeaders Firefox extension and make sure the cookie is being
sent.  Second, make sure there is a session_start() call in the
receiving code.  And third, check to make sure that the session data is
in the session data store.  If you are using the file-based session
store, match the session cookie to the session filename and watch it as
you click around.  Does it suddenly disappear?  If so, figure out why. 


Also check all your session.* settings and if you have multiple servers
behind any sort of load balancer, a per-server file-based session store
obviously won't work.  NFS-based stuff can also cause problems for a
file-based session store.

You can also write your own very simple trivial session test to verify
that sessions are working at all on your setup.

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

[2008-02-24 20:23:25] assid at assid dot com

The problem is I didnt make squirrelmail. So i am not sure of what i
can provide as the reproducable script. I am using the current stable
release.

I wanted to give something else to my users in the meantime, so i tried
horde, and well, that seems to have session timeout issues as well.

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

[2008-02-24 20:10:03] [EMAIL PROTECTED]

Please provide a short reproducing script.

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

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