Req #12548 [Opn->Csd]: session_set_save_handler() with php internal session storage
| From: | yohgaki@php.net | Date: | Sat, 31 Mar 2012 03:42:10 +0000 |
| Subject: | Req #12548 [Opn->Csd]: session_set_save_handler() with php internal session storage | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-169051@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=12548&edit=1
ID: 12548
Updated by: yohgaki@php.net
Reported by: sulka at sulake dot com
Summary: session_set_save_handler() with php internal session
storage
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: Session related
Operating System: *
PHP Version: *
-Assigned To:
+Assigned To: yohgaki
Block user comment: N
Private report: N
New Comment:
user_class handler does this.
Previous Comments:
------------------------------------------------------------------------
[2001-08-03 07:57:39] 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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=12548&edit=1