<?php
session_start();
if(isset($_SESSION['pereh'])) {
$_SESSION['pereh']++;
}else{
$_SESSION['pereh']=1;
}
if(isset($_SESSION['timer'])&&isset($_SESSION['pok']))
{$_SESSION['pok']=time()-$_SESSION['timer'];
}else{
$_SESSION['timer']=time();
$_SESSION['pok']=0;
}
///
echo'Переходов: '.$_SESSION['pereh'].'<br/>
ON: '.date('H:i:s',$_SESSION['pok']-10800);
?>