Habe jetzt mal die Befehle....
if(($sess_userid != "") AND ($sess_user != "")) {
$sql = mysql_db_query($db_name1,"UPDATE tu_users SET activerdate='" . $timestamp . "' WHERE userid=" . $sess_userid);
}
$timestamp = time();
$timeout = $timestamp-$timeoutseconds;
$timebed = $timestamp>$timeout;
ist das so richtig