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
boolean
destroy(string $id) : boolean
string
boolean
gc(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
boolean
open(string $savePath, string $name) : boolean
string
string
boolean
read(string $id) : string
string
string
write(string $id, string $data) : boolean
string
string
boolean
$lifetime : int
$mongoCollection : \Zend\Session\SaveHandler\MongoCollection
$sessionName : string