Question

I have one application which uses the standard .NET forms authentication cookie, now I need to get this cookie from an application hosted on the same domain but one folder down with it's own application.

I can't seem to find any trace of the cookie using Request.Cookies.AllKeys, there must be a reason why because when I check to see what the details of the cookie are it is still there and the path is set to "/" which means I should be able to access it?

Any help would be greatly appreciated.

Was it helpful?

Solution

Within asp.net you need to make sure that the machine keys are the same on each domain, and also the cookie uses the same name. Authentication only works if you are on the same domain.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top