One page, 1 cookie - 20 second expiry - remembers if image clicked when you return to the page (or reload)

1

The cookie is checked when the page loads, but does nothing if the image has not been touched (or if the cookie has expired).
If you mousedown on the image, an alert pops up, and the string "yes" is saved as the content of the cookie, which expires in 20 seconds.