jrSetCookie()

  • 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
    jrSetCookie('dash_reload', 'on', 30);
  • That could then be retrieved by the jrReadCookie() javascript function

Tags