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
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: 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 05 02:01:35 2025 UTC