Changes

Jump to: navigation, search

Understanding PHP Sessions

358 bytes added, 18:15, 6 June 2007
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>

Navigation menu