problem in getting cookies from one url to other.

M

milindsj

Hello all,
I am new to cookies.
I have a problem using cookies.
I want to set a cookie in on domain say www.eq.com and then retrive
it in another domain say test.eq.com.
How do I do this? I am facing problems for the same as i receive
null valus in test.eq.com for the cookie assigned in www.eq.com.
Thanks in advance.
 
E

Evertjan.

wrote on 04 okt 2005 in microsoft.public.inetserver.asp.general:
Hello all,
I am new to cookies.
I have a problem using cookies.
I want to set a cookie in on domain say www.eq.com and then retrive
it in another domain say test.eq.com.
How do I do this? I am facing problems for the same as i receive
null valus in test.eq.com for the cookie assigned in www.eq.com.
Thanks in advance.

I don't think it is possible with serverside [ASP] code.

With clientside code see:

<http://groups.google.com/group/macromedia.flash.handhelds/msg/8e880c85961c
bfa6?hl=en&>

Not tested by me!!!!
 
E

Evertjan.

Evertjan. wrote on 04 okt 2005 in
microsoft.public.inetserver.asp.general:
wrote on 04 okt 2005 in microsoft.public.inetserver.asp.general:
Hello all,
I am new to cookies.
I have a problem using cookies.
I want to set a cookie in on domain say www.eq.com and then
retrive
it in another domain say test.eq.com.
How do I do this? I am facing problems for the same as i receive
null valus in test.eq.com for the cookie assigned in www.eq.com.
Thanks in advance.

I don't think it is possible with serverside [ASP] code.

With clientside code see:

<http://groups.google.com/group/macromedia.flash.handhelds/msg/8e880c85
961c bfa6?hl=en&>

Not tested by me!!!!

sorry, this is cross-browser cookieing.

you want cross-domain cookieing:

Set the domain attribute with:

Response.Cookies(name)[(key)|.attribute]=value

<http://www.w3schools.com/asp/coll_cookies.asp>
 
T

Tim Slattery

Hello all,
I am new to cookies.
I have a problem using cookies.
I want to set a cookie in on domain say www.eq.com and then retrive
it in another domain say test.eq.com.

Cannot be done. Cookies can be retrieved only from the domain that
placed them.
 

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

Members online

No members online now.

Forum statistics

Threads
474,147
Messages
2,570,833
Members
47,377
Latest member
MableYocum

Latest Threads

Top