.NET authentication cookie not available in another application

I have one application that uses a standard cookie for .NET authentication. Now I need to get this cookie from an application hosted on the same domain but in the same folder with its own application.

I cannot find any trace of a cookie using Request.Cookies.AllKeys. There must be a reason because when I check what details of the cookie still exist and the path is set to "/" what does it mean I should be able to access it?

Any help would be greatly appreciated.

+1


source to share


1 answer


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



+4


source







All Articles