session.save_handler = user

From: Date: Fri, 31 Aug 2001 10:56:33 +0000
Subject: session.save_handler = user
Groups: php.general 
Request: Send a blank email to php-general+get-65451@lists.php.net to get a copy of this message
Hello! I have a question regarding sessions when register_globals = off in php.ini Using the example from www.php.net: <? session_register("count"); $HTTP_SESSION_VARS["count"]++; ?> This works well when session.save_handler = files However, when session.save_handler = user where the "user" functions are the ones found on phpbuilder.com. It turns out that the sess_write rountine is NEVER called, ie. session_registered variables aren't saved. I thought there was something wrong with the customer-handler but for debugging purposes, I took out everything except things like: function sess_write ($key, string value) { echo ( "sess_write was called.<br>"); } and yet, it was ever called! Other functions like read, gc, destory works great. However, if I change php.ini to register_globals = ON Then the above sess_write function would be called! Is this a known problem, or am I missing something? reg.

« previous php.general (#65451) next »