netom / php-mongodb-session
A tiny, lockless session backend
1.0.0
2017-04-09 13:40 UTC
Requires
- php: >=5.4.0
- ext-mongodb: ~1.2.0
This package is auto-updated.
Last update: 2024-11-26 03:39:33 UTC
README
Usage
Use composer to include 'netom/php-mongodb-session'.
Use the code below to register a mongodb session handler instance, and get the actual handler instance in a signle line:
$h = \Netom\Session\MongoDB::register();
See the code for parameters.
The default is to connect to the localhost, and to the 'session' database, using the 'session' collection.
Put an index to the 't' field to make garbage collection faster.