34,333
edits
Changes
→Reading a Saved PHP Session
<pre>
<?php
session_start();
?>
<html>
<head>
</head>
<body>
<?php
$filehandle = fopen ('/tmp/php_session.txt', 'r'); // open file containing session data
$sessiondata = fread ($filehandle, 4096); // read the session data from file
fclose ($filehandle);
session_decode($sessiondata); // Get the session data
?>
</body>
</head>
</pre>