php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25970 Session management fails when I stop the browser while a PHP page is loading.
Submitted: 2003-10-23 15:45 UTC Modified: 2003-11-18 07:53 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: bueno at catho dot com dot br Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.3.4 OS: Debian 3.0 Linux 2.4.20
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bueno at catho dot com dot br
New email:
PHP Version: OS:

 

 [2003-10-23 15:45 UTC] bueno at catho dot com dot br
Description:
------------
Session management fails when I stop the browser while a PHP page is loading.
As soon as the browser requests a file with a session_start or session_register command the browser gets in a
kinda endless loop and the session file stay open. The browser keeps waiting and waiting and nothing happens (nothing appears on the screen).

I tryed to list the open files on system (lsof) when this happen.
And, see my session file opened by a httpd process for 20 minutes, even when the browser has canceled the requisition. 

While the command : lsof | grep sess_SESSIONID return the file open, I could not access any page with session_start() or session_register().

Pparently the apache process has locked the file, and any other process can read it (the session file)

I'm using PHP4.3.2 / Debian 3.0 Linux 2.4.20 / Apache 1.3.28
My configure command:
'./configure' '--with-mysql=../mysql/mysql-standard-4.0.12-pc-linux-i686'
'--with-apache=../../apache/build_deb/deb2/apache-1.3.28' '--enable-track-vars'
'--disable-debug' '--with-gd' '--enable-ftp' '--enable-inline-optimization'
'--enable-sockets' '--with-zlib' 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-23 22:22 UTC] iliaa@php.net
ignore_user_abort(true); is always a good idea.

But try a newer version, the problem may have went away.
 [2003-10-25 20:14 UTC] catia at catho dot com dot br
ignore_user_abort(true)  didn?t help...

some how, system can?t see that php fails, or take too much time, to delivery the page and the user press "Reload"

May we set some time limit to the session file be lock in a single request?
 [2003-11-12 11:00 UTC] catia at catho dot com dot br
I try to use this snapshot and the problem was not solved...
Then, I install php 4.3.4 and apache 1.3.29... and the problem still happens...
 [2003-11-17 18:12 UTC] sniper@php.net
Can not reproduce with 10 sites heavily dependant on sessions.
Check your scripts.

 [2003-11-18 07:53 UTC] bueno at catho dot com dot br
Please,
can you send me some of this sites in a private message ?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 01:01:31 2024 UTC