This problem seems to be resolved:
https://github.com/KentorIT/owin-cookie-saver
Discontinued from the site:
Microsoft Owin has a bug in System.Web. the one that is used when running Owin applications in IIS. Which is probably 99% of us if we use the new Owin-based authentication using ASP.NET MVC5.
Fixed a bug due to which the cookie set by Owin mysteriously disappears in some cases.
This middleware is a fix for this error. Just add it before any cookie, processing middleware and saving authentication cookies.
A sequential process that seems to work so far:
- Using Project / Manage NuGet Properties, Add Kentor.OwinCookieSaver
- In
Startup.Auth.cs , inside the public partial class Startup , before app.UseCookieAuthentication(new CookieAuthenticationOptions()); add app.UseKentorOwinCookieSaver();
shortened code example
public partial class Startup {
UPDATE:
After this change, the problem still exists.
Nick.McDermaid
source share