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