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
  1. #1
    Regular Coder tpeck's Avatar
    Join Date
    Oct 2002
    Location
    Sydney, Australia
    Posts
    815
    Thanks
    43
    Thanked 6 Times in 5 Posts

    cookie path problem

    Unfortunately, this isn't standard cookie stuff (I don't think).

    I have a compiled .exe loader for a program which includes an .html page which records the input of a textbox to a cookie.

    That much works OK. But reading it back isn't working.

    It seems the path is:

    ~~local~~/C:/Users/Terry/AppData/Local/Temp/td9/FrontPage%20Webs/1001(FINAL)(v1.2)/loader/

    i.e. a temp dir related to the directory from where the .exe file was created.

    What I need is for the cookie to be available everywhere:

    ~~local~~/

    Is anyone able to shed some light? Adding ";path=/"; isn't working.

    I guess it's something to do with being compiled?
    The difference between genius and stupidity is that genius has its limits. (Albert Einstein)

  • #2
    Regular Coder tpeck's Avatar
    Join Date
    Oct 2002
    Location
    Sydney, Australia
    Posts
    815
    Thanks
    43
    Thanked 6 Times in 5 Posts
    Fixed. It was a stupid syntax problem:

    Code:
    document.cookie = isName+"="+escape(isValue)+";expires="+expDate.toGMTString();+";path=/";
    instead of...

    Code:
    document.cookie = isName+"="+escape(isValue)+";expires="+expDate.toGMTString()+";path=/";
    The latter is correct.
    The difference between genius and stupidity is that genius has its limits. (Albert Einstein)


  •  

    Posting Permissions

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