Code has been added to clipboard!
Setting JavaScript Cookies
Example
function setCookie(cookName, cookValue, expiry) {
   var dt = new Date();
   dt.setTime(dt.getTime() + (expiry*24*60*60*1000));
   var expires = "expires="+ dt.toUTCString();
   document.cookie = cookName + "=" + cookValue + ";" + expiry + ";path=/";
}