MongoSessionStore.this

this(string url, string collection = "sessions")

Constructs a new MongoDB session store.

Parameters

urlURL of the MongoDB database (e.g. "mongodb://localhost/mydb")
collectionOptional collection name to store the sessions in
this(MongoDatabase db, string collection = "sessions")

Constructs a new MongoDB session store using an existing DB.

Parameters

dbthe connected MongoDB database.
collectionthe collection name for the sessions collection.
this(MongoCollection collection)

Constructs a new MongoDB session store using a collection object.

Parameters

collectionthe collection to store sessions in.