php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #14715 suggestion:mapping session file into dirs
Submitted: 2001-12-27 04:33 UTC Modified: 2010-12-22 14:50 UTC
From: chedong at yeah dot net Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.0.6 OS: FREEBSD
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: chedong at yeah dot net
New email:
PHP Version: OS:

 

 [2001-12-27 04:33 UTC] chedong at yeah dot net
if a site use php session heavily, the mean problem is too many session file in /tmp. sometime user even can't use 'rm *' delete these too many files.

is it possible add a php session file mapping mechanism?
auto create mapping dir in session_tmp_dir and assign session file into dirs(if dir not created autocreated it)
for example:
mapping session file to 
/tmp/a/a
/tmp/a/b
/tmp/a/c
.....
/tmp/b/a
...

or
/tmp/php_sess/0/0
/tmp/php_sess/0/1
/tmp/php_sess/0/2
/tmp/php_sess/0/3
/tmp/php_sess/0/4
...

user can config, mapping or not mapping session tmp dir,
mapping dir deep level in php.ini....

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-27 05:51 UTC] sander@php.net
Not a bug, making it a feature request.
 [2010-12-22 14:50 UTC] johannes@php.net
-Status: Open +Status: Bogus -Package: Feature/Change Request +Package: *General Issues
 [2010-12-22 14:50 UTC] johannes@php.net
This is possible. See 2nd paragraph in http://php.net/manual/en/session.configuration.php#ini.session.save-path
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 15:01:30 2024 UTC