Overview
The
jrSetCookie() javascript function allows you to set a browser cookie for reading later on.
A cookie can persist over page refreshes so can store useful information about the state of things as relate to that specific user, like the number of items they like to see on a page or other preference.
The structure is jrSetCookie(name, value, days) so an example to set one would be