/ Published in: PHP
This script helps you to test session persistence for your HTTP API.
Launch this.php?set=valuuue to set the session value stored to value.
Launch this.php to retrieve the value.
Launch this.php?set=valuuue to set the session value stored to value.
Launch this.php to retrieve the value.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php /** * This script helps you to test session persistence for your HTTP API * * launch this.php?set=valuuue to set the session value stored to value * launch this.php to retrieve the value */ $_SESSION['value'] = $_GET['set']; echo 'value set to : '.$_SESSION['value']; } else { echo 'no value stored'; } else { echo 'session contains : '.$_SESSION['value']; } } ?>