Results 1 to 3 of 3

Thread: longer cookies

  1. #1
    Join Date
    Sep 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default longer cookies

    I really like this script http://dynamicdrive.com/dynamicindex1/navigate2.htm

    however, I can't seem to find a script that uses cookies for a long period of time, instead of just for sessions.

    Is there any way someone could help me on this and make the script use longer cookies for so many days.

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Please do NOT double post; rules are rules.

    Your answer:

    just add
    ; expires=Thu, 01-Jan-05 00:00:01 GMT

    to the end of the line reading
    document.cookie=window.location.pathname+"="+selectedItem

    making this:
    document.cookie=window.location.pathname+"="+selectedItem; expires=Thu, 01-Jan-05 00:00:01 GMT

    info found at http://www.netspade.com/articles/javascript/cookies.xml, which also details other cookie features.

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  3. #3
    Join Date
    Sep 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanx for help...but that does not seem to work

    btw...I figured it was the wrong forum to post in....hence the 2 posts

Bookmarks

Posting Permissions

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