Sunday 29 April 2007

Javascript for putting a cookie and retrieving a cookie

Someone asked me the other day how to save a cookie via javascript, then retrieve said cookie to display the users name..

Simple right? I couldnt remember javascript at all to be honest - but i found this article:

http://www.webreference.com/js/column8/functions.html

Suddenly it all made sense again!

Its easy when you know how..

No comments: