php.net |  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
Votes:2
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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
39 - 24 = ?
Subscribe to this entry?

 
 [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 
that

- 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 
handling
- 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-14 12:07 UTC] jani@php.net
-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] yohgaki@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: yohgaki
 [2012-03-31 03:42 UTC] yohgaki@php.net
user_class handler does this.
 
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Feb 03 08:05:55 2023 UTC