ASP.NET_SessionId + OWIN Cookies do not send to browser

后端 未结 9 1366
误落风尘
误落风尘 2020-11-22 14:00

I have a strange problem with using Owin cookie authentication.

When I start my IIS server authentication works perfectly fine on IE/Firefox and Chrome.

I st

9条回答
  •  野性不改
    2020-11-22 14:22

    Answers have been provided already, but in owin 3.1.0, there is a SystemWebChunkingCookieManager class that can be used.

    https://github.com/aspnet/AspNetKatana/blob/dev/src/Microsoft.Owin.Host.SystemWeb/SystemWebChunkingCookieManager.cs

    https://raw.githubusercontent.com/aspnet/AspNetKatana/c33569969e79afd9fb4ec2d6bdff877e376821b2/src/Microsoft.Owin.Host.SystemWeb/SystemWebChunkingCookieManager.cs

    app.UseCookieAuthentication(new CookieAuthenticationOptions
    {
        ...
        CookieManager = new SystemWebChunkingCookieManager()
        ...
    });
    

提交回复
热议问题