<?
include("./my_session.class.php");
include("./my_session.conf.php");
$session = new my_session($_MYSESSION_CONF);
echo "All session vars: <pre>";
print_r($session->VARS);
echo "</pre>";
echo '<br> Changing a variables: cane="bar", $session->registra("cane","bar"); <br>';
$session->registra("cane","bar");
echo '<br> Registering a new variables: gatto="fufi", $session->registra("gatto","fufi"); <br>';
$session->registra("gatto","fufi");
echo '<br>
<br>Only one session vars:<br>
Using the array: $session->VARS["cane"] -> cane = '.$session->VARS["cane"].'<br>
Using the new method: $session->get_var("cane") -> cane = '.$session->get_var("cane").'<br>
Using the array: $session->VARS["gatto"] -> gatto = '.$session->VARS["gatto"].'<br>
Using the new method: $session->get_var("gatto") -> gatto = '.$session->get_var("gatto");
echo '<br><br>Session_ID:'.$session->session_id.'<br>';
echo '<br><a href="./esempio.php?MY_PHPSESSID='.$_REQUEST["MY_PHPSESSID"].'">GO!</a>';
?>
|