Logout On Lava

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Logout On Lava

    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.

    #2
    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."'"); 
    ?? if that script is lava?
    and for ses
    PHP Code:
    $deloldses mysql_query("DELETE FROM prefix_ses WHERE expiretm<'".time()."'"); 
    ??
    <?php unlink('World/Europe/Romania.country'); ?>

    Comment

    Working...
    X