|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #12548 session_set_save_handler() with php internal session storage
Submitted: 2001-08-03 07:57 UTC Modified: 2012-03-31 03:42 UTC
Avg. Score:3.0 ± 2.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: sulka at sulake dot com Assigned: yohgaki (profile)
Status: Closed Package: Session related
PHP Version: * OS: *
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.
Block user comment
Status: Assign to:
Bug Type:
From: sulka at sulake dot com
New email:
PHP Version: OS:


 [2001-08-03 07:57 UTC] sulka at sulake dot com
Most application server's I've worked with allow code to be 
executed when a session is garbage collected, making it 
easier to collect data about the sessions.

Would it be possible add a session_set_save_handler() type 
call that takes the same parameters with the difference 

- it'd accept null as a value so not all functions need to 
be defined
- this wouldn't stop PHP from executing the usual session 
- the functions would be called with session data before 
the built in PHP handlers take effect

This would be very handy for creating statistics on page 
creation times as well as executing code upon garbage 
collection (storing session closure info) without having to 
write a complete implementation of session storage.

Also, session_garbage_collect() that forced collection and 
session_count() that returned the number of active sessions 
would be verry nice.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-14 12:07 UTC]
-Package: Feature/Change Request +Package: Session related -Operating System: N/A +Operating System: * -PHP Version: 4.0.6 +PHP Version: *
 [2012-03-31 03:42 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: yohgaki
 [2012-03-31 03:42 UTC]
user_class handler does this.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 09:01:27 2024 UTC