php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33271 Session file not deleted when php-win exits
Submitted: 2005-06-08 10:03 UTC Modified: 2005-06-08 14:54 UTC
From: neo_in_matrix at msn dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 5.0.4 OS: Windows XP PRO/SP2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: neo_in_matrix at msn dot com
New email:
PHP Version: OS:

 

 [2005-06-08 10:03 UTC] neo_in_matrix at msn dot com
Description:
------------
Though it is a bit strange for me to find that php-win also has session support ($_SESSION), but it is even more strange for to find that when php-win exits, the session file is not deleted.


Reproduce code:
---------------
This is what I have in php.ini in %windir%:
session.save_path = "d:/temp/apache/session"

And my simple script is like this:
$_SESSION['test'] = 123;


Expected result:
----------------
This script creates a session file (such as sess_b003da224c2d5c1d50a9a8c95725ddca) in d:/temp/apache/session.

When the script terminates, I think php-win should delete the create session file, since it is not like php-cgi that has a session timeout. Once a script terminates, its session should be considered 'destroyed'.


Actual result:
--------------
Session file is not deleted.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-08 12:29 UTC] tony2001@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

I don't see any reason to change current behaviour of session garbage collector.
Read about it here: http://php.net/session
 [2005-06-08 14:54 UTC] neo_in_matrix at msn dot com
Okay, I see I must call session_destory manually to let the session files delted.

But, I think since it is not like what we need in Web server environment, php-win should call session_destory automatically when it exists, just like it cleans up opened file handles. Right?

I hope my argument makes sense.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC