Connecting Tech Pros Worldwide Forums | Help | Site Map

Reading cookies from different servers

Abdul Qadir Khan
Guest
 
Posts: n/a
#1: Nov 17 '05
Hi,

We have different web sites e.g www.abc.com, www.xyz.com I want to read
cookies written by www.abc.com from www.xyz.com and vice versa. Please
advise.

Thanks
AQ.


Frank Drebin
Guest
 
Posts: n/a
#2: Nov 17 '05

re: Reading cookies from different servers


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..

"Abdul Qadir Khan" <connect2aq@hotmail.com> wrote in message
news:ey0q$KzaDHA.2344@TK2MSFTNGP12.phx.gbl...[color=blue]
> Hi,
>
> We have different web sites e.g www.abc.com, www.xyz.com I want to read
> cookies written by www.abc.com from www.xyz.com and vice versa. Please
> advise.
>
> Thanks
> AQ.
>
>[/color]


MS News \(MS ILM\)
Guest
 
Posts: n/a
#3: Nov 17 '05

re: Reading cookies from different servers


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.

"Abdul Qadir Khan" <connect2aq@hotmail.com> wrote in message
news:ey0q$KzaDHA.2344@TK2MSFTNGP12.phx.gbl...[color=blue]
> Hi,
>
> We have different web sites e.g www.abc.com, www.xyz.com I want to read
> cookies written by www.abc.com from www.xyz.com and vice versa. Please
> advise.
>
> Thanks
> AQ.
>
>[/color]


Closed Thread