View Full Version : Cookies 101

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:
document.cookie="my_location=12345;expires=Fri, 30-Nov-2003 00:00:00 GMT";

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

08-01-2002, 04:52 AM
Take a look at this script, it should show you how to do what you're trying...

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum