2

I use following code for ASP.NET Identity:

var options = new CookieAuthenticationOptions
{
    AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
    CookieName = "ScanTest",
    ExpireTimeSpan = TimeSpan.FromHours(2),
    LoginPath = new PathString("/account/login"),
    SlidingExpiration = true,
};

app.UseCookieAuthentication(options);

When I publish my application to Azure, it logs out users after couple of time of inactivity. It is really hard to figure out what is the problem because on dev machine it does not log me out.

Any help?

Danilo Vulović
  • 2,983
  • 20
  • 31

0 Answers0