I've used a mobilezonez script for my site. There is one error among a few others that if a users leaves without logging out, he/she stays in the online list forever. Sometimes even for months altogether lol. I've to go to the database everytime and delete the user from online list table and sessions. Any solutions please? Can i set a time so that the system logs the user out after a certain duration of inactivity.
Logout On Lava
Collapse
X
-
on addonline() u dont have ?
PHP Code:$tm = time();
$timeout = $tm - 3600; //time out = 60 minutes
$deloff = mysql_query("DELETE FROM prefix_online WHERE actvtime <'".$timeout."'");
and for sesPHP Code:$deloldses = mysql_query("DELETE FROM prefix_ses WHERE expiretm<'".time()."'");
<?php unlink('World/Europe/Romania.country'); ?>
Comment