Hi @ cebuhax0r-4671,
Apologies for misunderstood the ask.
This is due to application is not able to sustain the cookies for the signed in user.
Kentor.OwinCookieSaver is the legacy solution to solve the cookie issue on ASP.NET MVC. Now Microsoft recommended to use System.Web.
Unfortunately, Cookies set by Owin using System.Web mysteriously disappear on some occasions and there are workarounds suggested here.
Install Nuget Package:Kentor.OwinCookieSaver and add below before any cookies handling middleware will help to preserve the authentication cookies.
public void Configuration(IAppBuilder app)
{
app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType);
app.UseKentorOwinCookieSaver();
app.UseCookieAuthentication(new CookieAuthenticationOptions());
///...
}
Hope this will help.
Thanks,
Shweta
-----------------------------------------
Please remember to "Accept Answer" if answer helped you.