A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Session Cookies (HTML)

  1. #1
    Flashkit historian Frets's Avatar
    Join Date
    Oct 2000
    Location
    flashkit
    Posts
    8,797

    Session Cookies (HTML)

    The scenario
    I have this script curtesy of http://javascriptkit.com

    The script is intact Here
    http://oaklanddesign.com/postit.html

    Lines 49, 50, 51
    //Post-it only once per browser session? (0=no, 1=yes)
    //Specifying 0 will cause postit to display every time page is loaded
    var once_per_browser=0

    everytime I change the value of once_per_browser=1
    I get page errors
    I close my browser clean my cookies out return to the page and get an error along with hidden div

    Meanwhile leaving the setting at 0
    No errors but I want the session cookie to work.

    any ideas?

    Thanks
    Mike

  2. #2
    Registered User
    Join Date
    Feb 2001
    Posts
    13,039
    Hi,

    the code works much better after replacing all occurrences of document.cookie4 by document.cookie

    Musicman
    Last edited by Musicman; 11-16-2002 at 10:55 AM.

  3. #3
    Flashkit historian Frets's Avatar
    Join Date
    Oct 2000
    Location
    flashkit
    Posts
    8,797
    Thanks much

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center