Reading cookies from different servers

  • Thread starter Thread starter Abdul Qadir Khan
  • Start date Start date
For security reasons, I don't think you can.

The topmost level you can write a cookie - is at the domain level. So if you
specified a cookie was for "abc.com" - any page and any subdomain could read
that cookie, but no one else could.

If you are working with another company, you should setup a common
subdomain. For example, if you are at www.abc.com - and your vendor is
www.xyz.com - they should setup a web server and call it xzy.abc.com - so
then they can write cookies and you can read them (because they are from the
same domain) - and vice versa.

But you can't just read anyone elses cookies.. Imagine, you could go read
the cookies for my automatic login to EBay or my bank... that would be bad..
 
What you can do is save the information ( that you put in a cookie and wants
to share between domains ) in a SQL Server Database that way you can get
to the data you want. You will have to do more work here however.
 
Back
Top