ID: 43579 Updated by: [EMAIL PROTECTED] Reported By: assid at assid dot com -Status: Open +Status: Feedback Bug Type: Session related Operating System: Debian etch PHP Version: 5.2.5 New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [2008-02-24 19:16:31] assid at assid dot com I decided to try and give php5.2-200802241730 a try to see perhaps if the bug is know and rectified. I know still have the session time outs, except now its worse. Instead of being able to continue after clicking on the folder on the left side, it now logs out totally, effectively destroying the session. ------------------------------------------------------------------------ [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). ------------------------------------------------------------------------ [2007-12-12 10:53:02] assid at assid dot com Description: ------------ I tried upgrading to php 5.2.5 from 5.2.4 and ever since i did that my sessions have been acting strange. It seems most noticable using squirrelmail. Downgrading back to 5.2.4 seems to have fixed this issue, so its definitely something on how 5.2.5 handles sessions Reproduce code: --------------- http://spherelinx.com/phpinfo.php http://assid.pastebin.com/f7ba83639 <-- yes i know certain configure options have been deprecated. but using the same config.nice for both Expected result: ---------------- session management similar to 5.2.4 where it doesnt just timeout for no apparent reason. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43579&edit=1