One page, 1 cookie - 10 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, a random alert happens, and the string "yes" is saved as the content of the cookie, which expires in 10 seconds.