kingofseo adlı üyeden alıntı: mesajı görüntüle
Denermisiniz;
$last_visit = date('Y-m-d H:i:s', time()); 
$current_time = strtotime(date("Y-m-d H:i:s")); // CURRENT TIME 
$last_visit = strtotime($ksongiris); // LAST VISITED TIME 
$time_period = floor(round(abs($current_time - $last_visit)/60,2)); //CALCULATING MINUTES 
if ($time_period <= 10){ 
echo "Cevirimci";
} else { 
echo "Cevirimdisi";
}

Kaynak : http://bakery.cakephp.org/articles/imran7000/2010/03/12/check-member-user-online-or-offline-status
Sorunsuz çalıştı hocam, çok teşekkür ederim