Is there any way to tell if a cookie is set for .domain.com
rather than www.domain.com
? A solution in either client-side JS or server-side PHP would be OK.
What I would like to do is delete any cookies set for .domain.com
, because I have recently set up static.domain.com
for static content, and I don't want cookies being sent to the static subdomain. I've converted all cookies set by the site to use www.domain.com
, but existing users will have old cookies set for .domain.com
.