MongoSessionStore.this
this
(string url, string collection = "sessions")Constructs a new MongoDB session store.
Parameters
url | URL of the MongoDB database (e.g. "mongodb://localhost/mydb") |
collection | Optional collection name to store the sessions in |
this
(MongoDatabase db, string collection = "sessions")Constructs a new MongoDB session store using an existing DB.
Parameters
db | the connected MongoDB database. |
collection | the collection name for the sessions collection. |
this
(MongoCollection collection)Constructs a new MongoDB session store using a collection object.
Parameters
collection | the collection to store sessions in. |