Bug #12548: session_set_save_handler() with php internal session storage
| From: | sulka at sulake dot com | Date: | Fri, 03 Aug 2001 11:57:40 +0000 |
| Subject: | Bug #12548: session_set_save_handler() with php internal session storage | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-61930@lists.php.net to get a copy of this message | ||
From: sulka@sulake.com
Operating system: N/A
PHP version: 4.0.6
PHP Bug Type: Feature/Change Request
Bug description: session_set_save_handler() with php internal session storage
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 bug report at: http://bugs.php.net/?id=12548&edit=1