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)

$CookieStore

$CookieStore
gives the location at which to store information on persistent cookies to be used by URLRead and related functions.

DetailsDetails

  • The default setting for $CookieStore is None, specifying that no persistent cookie store should be used.
  • $CookieStore=Automatic typically sets the cookie to be in the directory .cookies in $UserBaseDirectory.
  • Only persistent cookies are saved in the $CookieStore location; session cookies are not.
  • Block[{$CookieStore},] can be used to block the saving of persistent cookies to $CookieStore.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

The default $CookieStore:

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

When $CookieStore is set to Automatic, persistent cookies are stored between sessions:

In[1]:=
Click for copyable input

A typical file to store cookies:

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

Restore the default value:

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