Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

FindCookies

FindCookies[]
gives a list of all cookies.

FindCookies[domain]
gives a list of cookies associated with the specified domain.

FindCookies[assoc]
gives a list of cookies whose attributes match the specification in the association assoc.

DetailsDetails

  • FindCookies[] is equivalent to $Cookies.
  • FindCookies returns a list of associations representing the cookies it has found.
  • In FindCookies[domain], domain can be either a string or a string pattern of the type used in FileNames.
  • FindCookies[domain] is equivalent to FindCookies[<|"Domain"->domain|>].
  • In FindCookies[assoc], the association can contain entries with any of the following keys, with the same possible values as in $Cookies:
  • "Domain"domain for the cookie
    "Path"path restriction within the domain
    "Name"name of the cookie
    "Content"content of the cookie
    "ExpirationDate"when the cookie is set to expire
    "CreationDate"when the cookie was created
    "AllowSubdomains"whether to send cookies to subdomains (HostOnly)
    "ConnectionType"for what connection type the cookie should be sent (Secure)
    "ScriptAccessible"whether cookie is accessible from JavaScript etc. (HttpOnly)

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Cookies are received and set when URL commands are executed:

In[1]:=
Click for copyable input

Find all cookies:

In[2]:=
Click for copyable input
Out[2]=

Find cookies by domain:

In[3]:=
Click for copyable input
Out[3]=

Find cookies with a specified name:

In[4]:=
Click for copyable input
Out[4]=

Find cookies with an expiration date of Automatic:

In[5]:=
Click for copyable input
Out[5]=

Find cookies with explicit expiration dates:

In[6]:=
Click for copyable input
Out[6]=
Introduced in 2016
(11.0)