Re: Hanging/Frozen Sessions with Auth.php
| From: | Zachary M. Berke | Date: | Mon, 15 Aug 2005 01:47:35 +0000 |
| Subject: | Re: Hanging/Frozen Sessions with Auth.php | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20416@lists.php.net to get a copy of this message | ||
What if the script itself hangs?
Evert Pot - Rooftop Solutions wrote:
It seems like the session file isn't properly unlocked. Try setting ignore_user_abort to on. This will cause your script not to stop after a user abort, but continue [ and thus releasing the session file ] Evert Zachary Berke wrote:Hi, I'm having trouble with hanging/freezing sessions. If I load a page which uses an auth object: $someAuthObj->start() but I don't let that page finish loading (say it's a long loading page, and I hit the stop button, or it hangs/fails to load for some other reason), then my session is no longer usable. If I try to load any other page that uses the auth object, I can get no further than the: $someAuthObj->start() line. I have traced the hang into the Auth.php file, to the @session_start call within the start() function. If I delete the file in the session.save_path directory which corresponds to this session, then I can create a new session fine. Alternatively, If I open another browser which does not have the PHPSESSID cookie set, I can login fine. The other browser session remains frozen and unusable until the session expires or until I delete the session file in the session.save_path. I am using the DB container to speak with a MySQL DB. I cannot flush the hosts cache on the sql DB b/c I don't have RELOAD permissions on my shared host. Could this be a DB issue? The fact that deleting the file works and that I can login from another browser suggests that the answer to that is no, but I could be wrong. I am using PHP 4.3.11 on a Shared Linux host. The Auth.php file I have is labled v 1.67 2003/10/20 Thanks for any help, Zach