Cookies
Default Settings
Vimprobable will save cookies into a plain text file located at ~/.config/vimprobable/cookies by default. Cookies will be shared between browser instances.
Customisation
Run Time
Vimprobable2 allows to set the cookie policy through the :set command:
:set cookies=on
:set cookies=off
:set cookies=no_third
This tells the browser to accept all cookies, accept no cookies or accept all but third party cookies (default).
Compile Time
In config.h, there are three settings which will define the cookie policy:
- ENABLE_COOKIE_SUPPORT: comment this out if you want to disable cookie support completely
- COOKIES_STORAGE_FILENAME: the path to the text file which should contain the cookies (you have to create at least the path to it by hand for it to work)
- COOKIES_STORAGE_READONLY: boolean value; TRUE indicates that all cookies will be treated as session cookies, i.e. they are automatically deleted when the browser is closed. This setting is mutually exclusive with cookie sharing between browser instances.