class MongoDbSessionHandler implements SessionHandlerInterface
MongoDB session handler
__construct(Mongo|MongoClient $mongo, array $options) Constructor. | ||
open($savePath, $sessionName) {@inheritdoc} | ||
close() {@inheritdoc} | ||
destroy($sessionId) {@inheritdoc} | ||
gc($maxlifetime) {@inheritdoc} | ||
write($sessionId, $data) {@inheritdoc} | ||
read($sessionId) {@inheritdoc} |
Constructor.
List of available options: * database: The name of the database [required] * collection: The name of the collection [required] * idfield: The field name for storing the session id [default: _id] * datafield: The field name for storing the session data [default: data] * time_field: The field name for storing the timestamp [default: time]
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/HttpFoundation/Session/Storage/Handler/MongoDbSessionHandler.html