Fix bug in session garbage collection.
This commit is contained in:
@@ -206,7 +206,7 @@ class Session {
|
|||||||
// -----------------------------------------------------
|
// -----------------------------------------------------
|
||||||
if (mt_rand(1, 100) <= 2)
|
if (mt_rand(1, 100) <= 2)
|
||||||
{
|
{
|
||||||
static::driver()->sweep(time() - ($config['lifetime'] * 60));
|
static::driver()->sweep(time() - (Config::get('session.lifetime') * 60));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user