View Full Version : does not work on forwarded page

01-07-2008, 06:00 AM
1) Script Title: Style Sheet Switcher (v1.1)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm

3) Describe problem: Cannot set cookies from thirdparty website.

I have purchased domain on yahoo.
I have hosted my website on 50webs.com
On yahoo domain i am setting a forward to 50webs homepage.
Forward actually created an iframe for forward url.
And when i try to set cookie it does not get set. It shows no cookies when i read.

01-07-2008, 09:33 AM
JavaScript cookies are limited to reading/writing from the same domain the script itself is on (subdomains not withstanding) unfortunately.

01-11-2008, 03:04 PM
subdomain ?
I have domin registered as abc.com which forwards to aaa.xyz.com
my script is at aaa.xyz.com only.
aaa.xyz.com/cssswitch.html (where script is included)

So when i go to abc.com ultimately script is executed at aaa.xyz.com/cssswitch.js and caller is also at aaa.xyz.com/cssswitch.html. ??

Is it an issue with using iframes while forwarding ?

Thanks for reply.