-----------------------------------------------------
First I am using thjis code to set the session variables
Code: Select all
<?php
header("Content-Type: text/plain");
session_start();
$_SESSION["Name"] = "Hello";
echo session_id()."\n";
print_r($_SESSION);
?>and then using this code to get the values of the session variables
Code: Select all
<?php
header("Content-Type: text/plain");
//session_start();
//$_SESSION["Name"] = "Hello";
echo session_id()."\n";
print_r($_SESSION);
?>