Edit report at https://bugs.php.net/bug.php?id=12548&edit=1
ID: 12548 Updated by: [email protected] 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
