Commit c65b171e by Alexander Mohorev

removed useless option

parent 8a6418a9
...@@ -183,10 +183,8 @@ class Session extends \yii\web\Session ...@@ -183,10 +183,8 @@ class Session extends \yii\web\Session
*/ */
public function gcSession($maxLifetime) public function gcSession($maxLifetime)
{ {
$this->db->getCollection($this->sessionCollection)->remove( $this->db->getCollection($this->sessionCollection)
['expire' => ['$lt' => time()]], ->remove(['expire' => ['$lt' => time()]]);
['justOne' => false]
);
return true; 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