Forum Moderators: open

Message Too Old, No Replies

Subdomain cookies and p3p policies

Subdomain cookies and p3p policies

         

affter333

10:04 pm on May 12, 2007 (gmt 0)



Hi:

On A free webhosting that doesn't send out P3P:policyref,
Can a submain site reads cookie set by other subdomains?

For example: sub1.x.com sets a cookie ( domain : .x.com )
Will IE6 allow sub2.x.com to read it?

I'm on IE5, can't run IE6, so need you input, thanks.

Dabrowski

10:27 pm on May 12, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I found this:

For example, domain1.foobar.com can share a cookie with domain2.foobar.com if the cookie domain is “.foobar.com”. However, foobar.com cannot set a cookie with a domain of “.com” due to security constraints (often called the two dot rule).

Which would seem to suggest if you set the domain to ".x.com" (note leading dot) then it should be possible for these 2 subdomains to share cookies.

I'd be interested to know if this works, please let us know how you get on.