Re: [PATCH] session_set_save_handler(class)

From: Date: Wed, 09 Dec 2009 02:35:42 +0000
Subject: Re: [PATCH] session_set_save_handler(class)
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-46360@lists.php.net to get a copy of this message
Hi!
By extending the new internal class SessionHandler, users can wrap or override methods of whatever session handler is in use, or implement a complete custom handler.
Couple of notes: 1. I'd call mod_active something more clean - like session_active? 2. What happens if session module is set to "user" in configuration - what old_mod will be then and how this patch will work? 3. old_mod is also not a clear name - maybe default_mod? 4. I think it also makes sense to allow passing object instead of class. 5. In fact, thinking about it - maybe it should be an interface and not a class? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#46360) next »