When expires is in the past, it means it's expired :P
This commit is contained in:
@@ -266,7 +266,7 @@ class Session
|
|||||||
|
|
||||||
static public function GC()
|
static public function GC()
|
||||||
{
|
{
|
||||||
DBH::$db->query("delete from session where expires > current_timestamp");
|
DBH::$db->query("delete from session where expires < current_timestamp");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user