Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Cookies 101

  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cookies 101

    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?

  • #2
    New Coder
    Join Date
    Jul 2002
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Take a look at this script, it should show you how to do what you're trying...
    http://javascriptkit.com/script/scri...itorinfo.shtml


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •