MongoDB session save handler
Constructor
Parameters: |
|
---|---|
Throws ZendSessionExceptionInvalidArgumentException: | |
Open session
Parameters: |
|
---|---|
Return type: | boolean |
Close session
Return type: | boolean |
---|
Read session data
Parameters: | string – |
---|---|
Return type: | string |
Write session data
Parameters: |
|
---|---|
Return type: | boolean |
Destroy session
Parameters: | string – |
---|---|
Return type: | boolean |
Garbage collection
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.
Parameters: | int – |
---|---|
Return type: | boolean |