Logout On Lava

Started on the old forum in December 2010 · view the original in the archive · old links redirect here

1 reply · 299 views · started 15 years ago · 1 min read

2 participants
akashroy1987 Newbie · 1 posts #1

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. 🙁

i0nutzxp Developer · 150 posts #2

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'); ?>

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close