how can I share an asp.net session between http and https

后端 未结 4 761
无人及你
无人及你 2020-11-29 08:06

I read that a page which runs under an https connection cannot share an InProc Session (based on cookies) with another page (or the same for that matter) running under regul

4条回答
  •  無奈伤痛
    2020-11-29 08:27

    If any of the above solution does not work try this. I have cracked this out after doing research of a couple of days.

    app.UseCookieAuthentication(new CookieAuthenticationOptions
    {
        ...
        ...
        CookieSecure = CookieSecureOption.Never
    });
    

提交回复
热议问题