ClearCookies
ClearCookies[domain]
clears all persistent and session cookies associated with the specified domain.
ClearCookies[assoc]
clears all cookies whose attributes match the specification in the association assoc.
ClearCookies[All]
clears all persistent and session cookies for all domains.
Details
- In ClearCookies[domain], domain can be either a string or a string pattern of the type used in FileNames.
- ClearCookies[domain] is equivalent to ClearCookies[<"Domain"->domain >].
- In ClearCookies[assoc], the elements of the association are as specified in the notes for $Cookies.
- ClearCookies returns the list of cookies it has cleared.
- ClearCookies permanently clears even cookies that have been stored persistently at the location specified by $CookieStore.
Examples
open allclose allBasic Examples (1)
Cookies are received and set when URL commands are executed:
There are cookies from more than one domain:
Properties & Relations (1)
ClearCookies returns a list of the cookies removed:
Those cookies can be later restored using SetCookies:
Text
Wolfram Research (2016), ClearCookies, Wolfram Language function, https://reference.wolfram.com/language/ref/ClearCookies.html.
CMS
Wolfram Language. 2016. "ClearCookies." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ClearCookies.html.
APA
Wolfram Language. (2016). ClearCookies. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ClearCookies.html