The jcookies package is a small javascript 'class' that allows you to save persistent data in form of cookies.