How to delete only cookies set for .domain.com?

smistiaps

New Member
Is there any way to tell if a cookie is set for \[code\].domain.com\[/code\] rather than \[code\]www.domain.com\[/code\]? 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 \[code\].domain.com\[/code\], because I have recently set up \[code\]static.domain.com\[/code\] 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 \[code\]www.domain.com\[/code\], but existing users will have old cookies set for \[code\].domain.com\[/code\].
 
Back
Top