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
    New to the CF scene
    Join Date
    Sep 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    problem with setting path with cookies

    Having problems with setting the path in my cookies. I'm using the following code to set my cookies from various different folders within my site.

    ExpireDate.setTime(ExpireDate.getTime() + (1 * 24 * 3600 * 1000));

    document.cookie="visit=true; expires="+ ExpireDate.toGMTString()+"path=/; domain=mydomain.com";

    Instead of the cookies been stored as @mydomain.txt they are been stored all over the place with the name of the folder that the script is in and I cant seem to access the cookies from different folders.

    Any help with this would be greatly appreciated.

  • #2
    New to the CF scene
    Join Date
    Sep 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Problem fixed

    sorry stupid mistake was missing ; after the expire date.


  •  

    Posting Permissions

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