Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Javascript cookies and crossing domains

I only have one secure domain

3:59 pm on Dec 8, 2003 (gmt 0)

Preferred Member

10+ Year Member

joined:Apr 22, 2003
votes: 0

I am only allowed to have one secure domain name: secure.domainname.com.

I need to use this secure domain to read a cookie with a different domain name on the same server: www.somesite.com

Will adding a subdomain with the name of the domain of the site that is on the same server work?:


so that when setting the domain I can simply use domain = .somesite.com?

I'm still a novice at the whole cookies thing, so please be gentle.

Oh, and if the above is possible, what is involved in setting up a subdomain?

4:09 pm on Dec 8, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 15, 2002
votes: 0

You can access cookies across domains, as long as the cookie has a compact P3P policy attached to it.