custom session handlers
| From: | Szii | Date: | Thu, 29 Jun 2000 07:02:31 +0000 |
| Subject: | custom session handlers | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-3743@lists.php.net to get a copy of this message | ||
I set up the custom session handlers, and I can get the sessions to
call the "read()" and "open()" methods but can't seem to hit the
"write()"
method. Has anyone seen this, and if so, how did you resolve it?
Thanks in advance,
-Szii
function open($save_path, $session_name)
{
echo "Opening...<br>\r\n";
return true;
}
function read($SessionID)
{
echo "Reading...<br>\r\n";
return true;
}
function write($SessionID, $val)
{
echo "Writing...<br>\r\n";
return true;
}
session_set_save_handler ("open", "close", "read", "write",
"destroy", "gc");