C# – How to read third party cookies works across different domains


I know this question has been asked before, but many answers don't give clear samples with codes on how to do this using ASP.NET 2.0. A simple C# is preferred, but I can also accept VB.NET or F#.

This third party cookies question is a sample of a self answered question with the same topic, but it didn't give any clues about reading/getting the third party cookies.

Best Solution

This is basically a cross site scripting "feature". What you need to do is run code on the client which reads the cookies and somehow transfer the contents to somewhere else. This is typically done via a query.

But before you do that, please think about this for a moment. There's a reason you shouldn't be able to read cookies from third parties in the first place.

Related Question