Hi there,
I have a page that have the following code:
<?
if (!isset($SID))
{
$SID = mt_rand();
echo $SID;
}
else
{
echo "SID already set";
}
?>
The problem is everytime I hit refresh button (F5) the variable is re-created! I want only to create that variable only if its the first time the user enter that page.
Please I appreciate your help.
I have a page that have the following code:
<?
if (!isset($SID))
{
$SID = mt_rand();
echo $SID;
}
else
{
echo "SID already set";
}
?>
The problem is everytime I hit refresh button (F5) the variable is re-created! I want only to create that variable only if its the first time the user enter that page.
Please I appreciate your help.