php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20884 Session file stay forever
Submitted: 2002-12-08 01:27 UTC Modified: 2002-12-08 02:40 UTC
From: nitro1710 at hotmail dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.2.3 OS: FreeBSD 4.5
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nitro1710 at hotmail dot com
New email:
PHP Version: OS:

 

 [2002-12-08 01:27 UTC] nitro1710 at hotmail dot com
Here's my conf:
[Session]
session.save_handler = files
session.save_path = /tmp
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_maxlifetime = 1440
session.referer_check =
session.entropy_length = 0
session.entropy_file =
;session.entropy_length = 16
;session.entropy_file = /dev/urandom
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 1


I start session and even if the user close it's browser, the session file stay forever... It stay there and I have to delete them else I get an hundred of session file created.... I tested it on my 2 box (Freebsd4.5) and it does that too....

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-08 02:40 UTC] sniper@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php
 [2003-01-22 04:22 UTC] sense at gdsyzx dot edu dot cn
My PHP server has the same problem.PHP version is 4.3.0, apache Version is 2.0.43.
    Please tell me how to fix it. Thanks!
 [2003-02-19 11:47 UTC] up dot the dot iron at libero dot it
My PHP server has the same problem.

PHP version is 4.2.3, apache Version is 2.0.42 on Linux 2.4.18-3sm

    Please tell me how to fix it. Thanks!
 [2004-10-08 11:57 UTC] hendrik dot schmieder at jedox dot com
Hello,

we also have this problem.
System is WIN2000 Apache 1.3.31 , php 4.3.9 as apache module.

We have 

session.gc_probability = 100
session.gc_dividend    = 100
session.gc_maxlifetime = 120
session.use_trans_sid = 1

in our php.ini.

But even after 26 minutes the session file is not deleted.
Even after stopping the Apache service,
 the session file is still there.

I consider this as severe bug !

with best regards

  Hendrik Schmieder
 [2004-10-08 15:04 UTC] hendrik dot schmieder at jedox dot com
Sorry, 

session.gc_dividend  must be session.gc_divisor.

But this doesn't change the behaviour.

If the lifetime of a session is over, 
the session datafile MUST be deleted,
 also when the Apache service is stopping,
regardless if there's a new session starting or not.

 with best regards

   Hendrik
 [2004-10-08 16:41 UTC] hendrik dot schmieder at jedox dot com
Sorry a second time.

I withdrew the request, that the session files should
be deleted when Apache stopps.

Nevertheless,
if a session times out, their session file should be deleted,
regardless whether another session is started or not.

  Hendrik
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 17:01:33 2025 UTC