Closed rolodato closed 8 years ago
This entries at Stack Overflow describe the problem:
http://stackoverflow.com/questions/32928841/issue-with-https-on-production-environment
The issue is with Katana, see https://katanaproject.codeplex.com/workitem/197
There's a fix here: https://github.com/KentorIT/owin-cookie-saver, and also a NuGet package: https://www.nuget.org/packages/Kentor.OwinCookieSaver.
I plan on looking more into this next week. Please post something if you find a workaround this weekend.
Upgrading to the latest Microsoft.Owin and related dependencies (3.0.1) doesn't seem to fix the problem. The simple repro posted here continues to fail:
public ActionResult Index()
{
HttpContext.GetOwinContext()
.Response.Cookies.Append("OwinCookie", "SomeValue");
HttpContext.Response.Cookies["ASPCookie"].Value = "SomeValue";
HttpContext.Response.Cookies.Remove("ASPCookie");
return View();
}
@nicosabena Thanks for following up on this. Since upgrading makes no difference, can we close this issue?
Nevermind. I updated to the latest versions in any case because of another issue
Might fix intermittent issues with
getExternalIdentity
returningnull
.