<?php
session_start();
print_r($_SESSION);
if(empty($_SESSION['a'])) {
$_SESSION['a'] = mt_rand();
}
print_r($_SESSION);
?>
The code is placed on page1.php and after every page refresh the variable 'a' value is being set again and again. Whats the problem with the above code?