MongoDB session save handler
__construct(\Mongo | \Zend\Session\SaveHandler\MongoClient $mongo, \Zend\Session\SaveHandler\MongoDBOptions $options)
\Mongo\Zend\Session\SaveHandler\MongoClient
\Zend\Session\SaveHandler\Zend\Session\Exception\InvalidArgumentException |
|---|
close() : boolean
booleandestroy(string $id) : boolean
string
booleangc(int $maxlifetime) : boolean
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
booleanopen(string $savePath, string $name) : boolean
string
string
booleanread(string $id) : string
string
stringwrite(string $id, string $data) : boolean
string
string
boolean$lifetime : int
$mongoCollection : \Zend\Session\SaveHandler\MongoCollection
$sessionName : string