Hi,
I've been using sessions and every was working until yesterday, i don't know what happened (we've upgraded PHP4pl2 so i guess it has smthg to do with that)
but now my session_set_save_handler doesn't want to write anymore
i tried with my script and the test script from tutorial and it doesn't work??????????
here is the test script i'm using and what it retunrs:
<?php
function open ($save_path, $session_name) {
echo "open ($save_path, $session_name)<br>";
return true;
}
function close () {
echo "close<br>";
return true;
}
function read ($key) {
echo "read ($key)<br>";
return "foo|i:1;";
}
function write ($key, $val) {
echo "write ($key, $val)<br>";
return true;
}
function destroy ($key) {
return true;
}
function gc ($maxlifetime) {
return true;
}
session_set_save_handler ("open", "close", "read", "write", "destroy", "gc");
session_start ();
$foo++;
?>
What it returns:
open (/tmp, PHPSESSID)
read (3ed2b24e7ecf48a9e512e9ea078629db
And no write ??????
I'm totally lost, thanx for any help