I'm getting this warning:
Warning: session_regenerate_id() [function.session-regenerate-id]: Cannot regenerate session id - headers already sent
But the first this I do is actually ob_start
..
Test script:
ob_start();
$session = new SessionClass();
echo "Test";
SessionClass:
function __destruct() {
session_regenerate_id(true);
session_write_close();
}
Ans at least, the constructor of the class:
session_set_save_handler(array(__CLASS__, '_open'),
array(__CLASS__, '_close'),
array(__CLASS__, '_read'),
array(__CLASS__, '_write'),
array(__CLASS__, '_destroy'),
array(__CLASS__, '_gc'));
session_name($sessionName);
session_start();
The Test script should do an output to the JSON
by ECHO
"Test". But, it doesn't...