MongoSessionStore

Undocumented in source.

Constructors

this
this(string url, string collection)

Constructs a new MongoDB session store.

this
this(MongoDatabase db, string collection)

Constructs a new MongoDB session store using an existing DB.

this
this(MongoCollection collection)

Constructs a new MongoDB session store using a collection object.

Members

Functions

create
Session create()
Undocumented in source. Be warned that the author may not have intended to support it.
destroy
void destroy(string id)
Undocumented in source. Be warned that the author may not have intended to support it.
get
Variant get(string id, string name, Variant defaultVal)
Undocumented in source. Be warned that the author may not have intended to support it.
isKeySet
bool isKeySet(string id, string key)
Undocumented in source. Be warned that the author may not have intended to support it.
iterateSession
int iterateSession(string id, int delegate(string key) @(safe) del)
Undocumented in source. Be warned that the author may not have intended to support it.
open
Session open(string id)
Undocumented in source. Be warned that the author may not have intended to support it.
remove
void remove(string id, string key)
Undocumented in source. Be warned that the author may not have intended to support it.
set
void set(string id, string name, Variant value)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

expirationTime
Duration expirationTime [@property getter]
Duration expirationTime [@property setter]

The duration without access after which a session expires.

storageType
SessionStorageType storageType [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta