PDA

View Full Version : creating a cookie that is accessible across various domains in a website


srilupapa
05-24-2007, 04:05 PM
Hi,
I am trying to create a cookie in a web application using JavaScript.

The Website Navigation looks something like this:

Click a link on [www.test.com] -> loads [www.sub.test.com] -> click a link again -> loads [www.urb.test.com] -> click a link again -> loads [www.sub.test.com]

Navigating to different domains in the same site, I should be able to retrieve the cookie set in one domain and then should be able to change the value of cookie.

Help required.

Thanks in advance

Regards
Srilakshmi

glenngv
05-24-2007, 06:02 PM
When creating the cookie, set the domain to .test.com