I call it print_r.php, it lets you view server and session and such, and remove the session, so if you work with $_SESSION a lot it comes in very handy. To remove the session, just check the checkbox and submit the form. If you submit the form without checking the box, it just reloads the page. Any suggestions for improvements to it would be welcome.
PHP Code:
<?php @session_start();
if(isset(
$_POST['reset']))
{
session_destroy();
flush();
ob_flush();
}
?>
<!DOCTYPE html>
<html>
<head><meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>Print R Stuff</title>
<style type="text/css">
body{margin: 0 auto;padding-left: 100px; background: tan; color: darkred; font-size: 24px;}
</style>
</head>
<body>
<pre>
Order: Server, Session, Cookie, Free
<?php
    
//echo "_SERVER: ";
    //print_r($_SERVER);
    
echo "_SESSION: ";
    
print_r($_SESSION);
    echo 
"_COOKIE: ";
    
print_r($_COOKIE);
    echo 
"FREE: ";
    
$free = `free`;
    echo 
$free;
?>
</pre>
<form action="./print_r.php" method="post">
<input type="checkbox" name="reset">
<input type="submit" value="Destroy the Session">
</form>
<br /><br />
</body>
</html>