memcache PHP session handler redundancy
Sascha Braun - CEO at Braun Networks
sascha at braun-networks.com
Thu Jul 26 06:55:10 UTC 2007
The $_REQUEST var is used, in cases where AJAX calls
are getting made.
the http request.
Thats why thats in.
Tell me if I'm wrong.
Am Mittwoch, den 25.07.2007, 20:19 -0700 schrieb mike:
> On 7/25/07, Sascha Braun - CEO @ Braun Networks
> <sascha at braun-networks.com> wrote:
> > The session class I posted here has a single problem which will
> > cause that the session will get lost from time to time.
> > To fix the problem you cave to initialize the handler function
> > via session_set_save_handler after the session has been initialized.
> > The code looks simply like that:
> > // initialize session management
> > $session = new session_mm($_REQUEST);
> > session_set_save_handler(array(&$session, "handler_open"),
> > array(&$session, "handler_close"),
> > array(&$session, "handler_read"),
> > array(&$session, "handler_write"),
> > array(&$session, "handler_destroy"),
> > array(&$session, "handler_garbage"));
> > Then everything should work fine.
> ew, please do not suggest using $_REQUEST. :(
More information about the memcached