Reading Cookies from another domain?

F

Fred Nelson

Hi:

I have a web app that uses three separate domain names - I am trying to
develop a "single sign on" routine so that they can move between the
sites without having to sign on each time the domain changes.

I have found that I can only read and write cookies based on the URL so
if a cookie is written in "www.domain1.com" it is not available in
"www.domain2.com". I have written a program that does a
Response.Redirect, gets the cookie value and is returned to the sending
domain with a redirect including parameters.

I would like to be able to do this in a class library.

If anyone has any suggestions I would greatly appreciate it!

Thanks,

Fred
 
N

Nicholas Paldino [.NET/C# MVP]

Fred,

You might want to consider using passport instead, since it was designed
to handle exactly this scenario.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top