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


  • 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.


Basic Examples  (2)

The default $CookieStore:

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

A typical file to store cookies:

Restore the default value:

Introduced in 2016