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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC