[JavaScript]Need a working Cookie[JavaScript}

Discussion in 'Web Programming' started by Mn533, Oct 5, 2009.

[JavaScript]Need a working Cookie[JavaScript}
  1. Unread #1 - Oct 5, 2009 at 12:53 AM
  2. Mn533
    Joined:
    Aug 25, 2009
    Posts:
    17
    Referrals:
    0
    Sythe Gold:
    0

    Mn533 Newcomer

    [JavaScript]Need a working Cookie[JavaScript}

    I have just purchased a book on html, and read the whole thing, and i THINK im ready to make my own webbrowser game, but i need a working cookie.

    Heres what i need it to do, when you click the button, you get a point added, so you have 1 score. you exit the webbrowser, then, you reload it, and you have one score, so you can repeat. But heres the thing, whenever i exit the webbrowser, it deletes the cookie, which erases the score. ALL the javascript files i tried, does that, can i have one that wont delete the cookie?

    Thanks, and help will be much appreciated.
     
  3. Unread #2 - Oct 9, 2009 at 4:34 PM
  4. timk777
    Joined:
    Feb 19, 2007
    Posts:
    156
    Referrals:
    0
    Sythe Gold:
    0

    timk777 Active Member

    [JavaScript]Need a working Cookie[JavaScript}

    Don't save it in a cookie, if the user clears their cookies they will lose their score. Save it server side in a MySQL database instead.
     
< Good and Nice JavaScripts | E-penis >

Users viewing this thread
1 guest


 
 
Adblock breaks this site