On Thu, 14 Dec 2017 07:51:22 GMT, zafer wrote:

Thanks Sönke. Is there a MongoDB based session store tutorial or example code?

I've added a simple example now to the module documentation (not online yet, though). This is the gist of it:

auto store = new MongoSessionStore("mongodb://", "sessions");
store.expirationTime = 5.hours;

auto settings = new HTTPServerSettings("");
settings.sessionStore = store;

auto router = new URLRouter;

listenHTTP(settings, router);

Afterwards the usual session mechanism should work normally (req.session, res.startSession, or SessionVar!T in the web interface).