This article goes over the important aspects of cookies and how to use them via jQuery or plain JavaScript