This middleware provides session for your website or webservice using the ICache interface implementation registered with IoC.
Session is a dictionary of name/value pairs that is unique to each visitor to the website. The user is identified by storing a cookie on thier browser.
You typically want to provide an ICache implementation that provides a consistent view across servers so that you do not need sticky sessions, but you can also use an in-memory cache and sticky sessions if you want.
builder.Register(ninject.Get<OwinFramework.Session.CacheSessionMiddleware>()) .As("Session") .ConfigureWith(config, "/owinFramework/middleware/session");
The configuration below is the configuration you will get by default if you do not provide a configuration for this middleware.
{ "owinFramework": { "middleware": { "session": { "cacheCategory": "session", "sessionDuration": "00:20:00", "cookieName": "owin-framework-sid", "cookieDomainName": "" } } } }