Session not working when it was before
Posted: Sat May 29, 2004 1:53 am
I was using WinMe and installed Win 2003 Server Ent but I couldn't get MySQL to work in 2003 however much I try, so I reinstalled Me.
Now I'm not getting sessions to work though it was working fine before.
I changed the session.save_handler = user in the php.ini file in c:\windows.
session.name is $PHPSESSID
This code does not print the session id though it did before.
Please help.
Thanks
Now I'm not getting sessions to work though it was working fine before.
I changed the session.save_handler = user in the php.ini file in c:\windows.
session.name is $PHPSESSID
This code does not print the session id though it did before.
Code: Select all
<?php
session_module_name("user");
session_set_save_handler("session_open","session_close","session_read","session_write","session_remove","session_gc");
session_start();
print($PHPSESSID);
function session_open($path,$name)
{
return true;
}
function session_close()
{
return true;
}
function session_read($id)
{
return true;
}
function session_write($id,$data)
{
return true;
}
function session_remove($id)
{
return true;
}
function session_gc($life)
{
return true;
}
?>Thanks