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.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]