MongoDB session save handler
__construct(\Mongo | \Zend\Session\SaveHandler\MongoClient $mongo, \Zend\Session\SaveHandler\MongoDBOptions $options)
\Mongo\Zend\Session\SaveHandler\MongoClient
\Zend\Session\Exception\InvalidArgumentException |
|---|
close() : bool
booldestroy(string $id) : bool
string
boolgc(int $maxlifetime) : bool
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.
| see | \Zend\Session\SaveHandler\http://docs.mongodb.org/manual/tutorial/expire-data/ |
|---|
int
boolopen(string $savePath, string $name) : bool
string
string
boolread(string $id) : string
string
stringwrite(string $id, string $data) : bool
string
string
bool$lifetime : int
$mongoCollection : \Zend\Session\SaveHandler\MongoCollection
$sessionName : string