Reading Session File from /tmp directory
| From: | Devin Atencio | Date: | Thu, 18 Apr 2002 22:40:41 +0000 |
| Subject: | Reading Session File from /tmp directory | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-93612@lists.php.net to get a copy of this message | ||
I am trying to read a session file from the /tmp directory then
restore the PHP variables from this but I can't get it to work, i'm
doing the following:
$acontents = file("/tmp/sess_$sessid");
$data = $acontents[0];
unserialize($data);
$sessid is a valid session id, but unserialize doesn't give me
the values for $hostname, $username, etc?
Any help?