Duffy
(new user)
Sun Apr 27 2008 08:01 PM
Reading Cookies

Hi there i'm trying to make a javascript game.

In the game the user has a choice of 6 multiple choice questions.

What I am trying to do is set a cookie on the users machine with their name and score stored in the cookie.

So next time they clear the game and take it again i want the cookie stored on the machine to be read and have both the previous and current score compared ie "you did better than last time" or "you did not do as well as last time".

Any help would be great cheers.


andyk
(regular)
Mon Jul 07 2008 08:21 PM
Re: Reading Cookies

cookies can be wiped by the user, and normally have a restricted life span of a few days hours or weeks, i suggest a database
this also means you can have a highscore table n have much more fun


Contact Us | Privacy statement Main website
Hitwise Top 10 Award Winner - Jan-Mar 2005

About us | Contact us | Link to us | Terms & Conditions | Privacy Policy
© Copyright IPC Media Limited, All rights reserved