Learn about session-only cookies in JavaScript, and how they can help your scripts retain information even after the page is reloaded or cleared. http://wsabstract.com/javatutors/cookie.shtml
Using cookies, this script records the date+time of your visitors last visit and displays it upon their return. http://www.javascriptkit.com/script/script2/lastvisit.shtml
Use a few simple lines of JavaScript to verify if cookies are accepted by the target web browser. http://www.devpub.com/determine-if-cookies-are-enabled-t3.html