Here is the code...
//Start session for tracking of vistors
if ($_SESSION['domain']['start']!==1) {
$RemoteIP=$_SERVER['REMOTE_ADDR'];
$RandomID=rand(0,999999);
$TempSession=date("Ymd") . "p" . $RandomID . "p" . str_replace('.', 'p', $RemoteIP);
session_id($TempSession);
session_start();
$_SESSION['domain']['start']=1;
} else {
session_start();
};
It writes the session Id correctly buy resets the id on everypage view? Any ideas. I've tried it with and without the else statement.
I have found that PHP doesn't like the ! for calling not equal, or not set functions. I have often had to turn it arround to use a == and reverse the if else statement (if that made any sense)...
thanks in advance.