Commit c65b171e by Alexander Mohorev

removed useless option

parent 8a6418a9
......@@ -183,10 +183,8 @@ class Session extends \yii\web\Session
*/
public function gcSession($maxLifetime)
{
$this->db->getCollection($this->sessionCollection)->remove(
['expire' => ['$lt' => time()]],
['justOne' => false]
);
$this->db->getCollection($this->sessionCollection)
->remove(['expire' => ['$lt' => time()]]);
return true;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment