User-318388241 posted
Thanks for your anwser. In our application your prodived solution doesn't work. But you put us in the right direction.
app.UseCookieAuthentication(new CookieAuthenticationOptions
{
AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
LoginPath = new PathString("/Account/Login"),
Provider = providerWrapper,
SessionStore = new AuthenticationSessionStore(),
CookiePath = "/",
CookieName = cookieName,
SlidingExpiration = true,
ExpireTimeSpan = TimeSpan.FromMinutes(30)
});
We added the SessionStore property and implemented the interface. Now it is working like expected.
Thanks!