Zend\Session\SaveHandler\MongoDB::gc
Garbage collection
Note: MongoDB 2.2+ supports TTL collections, which may be used in place of this method by indexing the "modified" field with an "expireAfterSeconds" option. Regardless of whether TTL collections are used, consider indexing this field to make the remove query more efficient.
Signature
public function gc(int
$maxlifetime )
Parameters
$maxlifetime
— int
Returns
- bool