...

View Full Version : Cookies 101



MAXIMUS
08-01-2002, 04:09 AM
I need to write/find a very simple script that will store a self-appointed integer as a cookie.

However, I'm having problems reading the cookie back in from a different page.

My cookie creation is as follows:
<SCRIPT LANGUAGE="JavaScript">
document.cookie="my_location=12345;expires=Fri, 30-Nov-2003 00:00:00 GMT";
</SCRIPT>

So my question is, how can i view/edit the my_location variable from a different page?

HappyDude
08-01-2002, 04:52 AM
Take a look at this script, it should show you how to do what you're trying...
http://javascriptkit.com/script/script2/visitorinfo.shtml



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum