//Initialise a new session. This call either creates
// a new session or re-establishes an existing one.
session_start( );
// if this is a new session, then the variable
// $count will not be registered
if (!session_is_registered("count")) {
session_register("count");
session_register("start");
$count=0;
$start=time(0);
}else{
$count++;
}
$sessionId = session_id( );
//Cookie to Var
$Var= $sessionId;
?>