Is it possible to access cookies which exists on another application in IIS?
问题 I have 2 website on my IIS7, I can put the same domain for both of them, I want some cookies of both applications to be shared between them, so than I can create the cookie from one of them and read it from the other one, is that possible? do I need any custom configurations to do that? note: My websites, 1 is asp.net forms website and the other is MVC. 回答1: When you create the cookie specify the domain: var cookie = new HttpCookie("foo", "bar") { // indicates that only server side scripts