I am trying to manually decode a session using session_decode, and the operation fails (session_decode returns false). I have checked the value that I am passing to the function and it looks good.
The same code worked with PHP 4.1.x, but since I upgraded to 4.3.x it has not worked. Does anybody know anything that might be causing this? I have register_globals turned on.
Here is the important part of my code:
<?
function my_decode($sessionData) {
// Make the global so the session_decode function will put
// the session data in the proper scope.
global $srvsess;
global $_SESSION;
// Decode the session here
if(!session_decode($sessionData)) {
return "session_decode failed for this session!";
}
// The session should only contain a single member:
// $srvsess, which should be an array containing everything
// else.
if(!session_is_registered("srvsess")) {
return "This session does not show any valid data!";
}
}
?>
Tom Brown
An online Starcraft RPG? Only at:
http://www.netnexus.com/