Announcement

Collapse
No announcement yet.

$datecut, lastactivity and lastvisit

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

  • $datecut, lastactivity and lastvisit

    For finding if someone is online we use:

    $datecut = time() - $cookietimeout;
    if ( lastactivity > '$datecut' AND lastvisit <> lastactivity ) ...

    It should be enough to ask:

    if (lastactivity > $datecut) ...

    Why to proof if lastvisit = lastactivity ?

    Say cookietimeout = 1 hour.

    Logged in two hours ago, lastvisit=lastactivity
    Not online

    Logged in 0,5 hours ago, lastvisit = lastactivity
    Not online

    because he hasnĀ“t done more then the log in ?
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X