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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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

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-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 23:01:34 2024 UTC