Once you set the cookie you can access it using the methods I outlined as it is passed back to the server which created it on subsequent connections. Again the method used to set the cookie depends on how you are serving the page..php has one method, asp another, perl (or cgi) another while plain html requires scripting.

If you are using plain html take a look at http://javascript.internet.com and see if you can't find some cookie scripts there.