Why can I not write any session information to my MySQL database?
System: SunOS sunblade1 5.8 Generic_108528-13 sun4u sparc SUNW,Sun-Blade-100
Server Software: Apache/2.0.36 (Unix) PHP/4.2.1
I am using the following to handle sessions:
session_mysql.php
PHP4 MySQL Session Handler
by Ying Zhang
I constructed a simple test...
<?
if(! ini_set("session.save_handler","user"))
{
echo "Could not set user session handler.";
exit;
}
// Session handler
include("session_mysql.php");
session_set_save_handler("sess_open", "sess_close", "sess_read",
"sess_write", "sess_destroy", "sess_gc");
// Start session and add a variable
session_start();
$_SESSION["sess_test"] = "Test data";
?>
No session id is created in my sessions table and thus no variable !
Any Ideas ?
Cheers,
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php