How to get the domain value for a cookie in Javascript?
Posted
by Wabbitseason
on Stack Overflow
See other posts from Stack Overflow
or by Wabbitseason
Published on 2010-06-02T15:10:44Z
Indexed on
2010/06/02
15:24 UTC
Read the original article
Hit count: 182
Using Javascript I'd like to get the domain
value for a specific cookie.
Is this possible? If so, how?
To clarify: I'm not looking for the value of the cookie. I'm on "subdomain.domain.com" and I need to remove a cookie whose name is known but its domain value is something like ".domain.com". In short: I'd like to get the value of ".domain.com".
© Stack Overflow or respective owner