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
Started on the old forum in December 2010 · view the original in the archive · old links redirect here
on addonline() u dont have ?
$tm = time();
$timeout = $tm - 3600; //time out = 60 minutes
$deloff = mysql_query("DELETE FROM prefix_online WHERE actvtime <'".$timeout."'");
?? if that script is lava? and for ses
$deloldses = mysql_query("DELETE FROM prefix_ses WHERE expiretm<'".time()."'");
??
<?php unlink('World/Europe/Romania.country'); ?>