$vbulletin->db->query_write(" DELETE FROM " . TABLE_PREFIX . "session WHERE lastactivity < " . intval((TIMENOW - 86400]) . " ### Delete stale sessions ###
$vbulletin->db->query_write(" DELETE FROM " . TABLE_PREFIX . "session WHERE lastactivity < " . intval((TIMENOW - 86400)) . " ### Delete stale sessions ###