var now = new Date(); var time = now.getTime(); var expireTime = time + 10000*36000; now.setTime(expireTime); document.cookie = 'cookie=ok;expires='+now.toUTCString()+';path=/';
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter