Sharing a cookie between two websites on the same domain

后端 未结 2 883
抹茶落季
抹茶落季 2020-12-24 13:44

Here\'s the situation:

  • Website A, ASP.NET MVC 4 web application. Domain: http://a.example.com
  • Website B, ASP.NET MVC 4 web applicaiton. Domain: http:/
2条回答
  •  别那么骄傲
    2020-12-24 14:12

    The Best way to handle this is to make machinekey decryption fall back to Framework20SP2

    From this article : http://msdn.microsoft.com/en-us/library/system.web.configuration.machinekeysection.compatibilitymode.aspx

    Just add that attribute to machinekey in your .net 4.5 application

    
    

    you won't need to remove targetFramework="4.5" from httpruntime now.

提交回复
热议问题