jQuery 1.9.1, HTML, CSS, JavaScript
No-Library (pure JS), HTML, CSS, JavaScript
JS Snippet to set a cookie with a short expiration and then check for the cookie existance.