Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 04, 2012 12:15 AM by uick383937
May 03, 2012 09:16 PM|LINK
If you wanna keep the "contest mode" secure, storing anything critical about it in a cookie isn't going to protect you from users potentially tampering with the data. You should be storing this information in the database somewhere. I'd recommend a setup
May 04, 2012 12:15 AM|LINK
I just stumbled onto something interesting.
<body onunload = "unld();">
The function triggers when user refreshes, and I use the unld() function to save latest puzzle state in the cookie, which is later examined by host side script. This is solving my refresh problem in that user can't revert to an earlier state. what's interesting,
is no when I click the Back button I get messge "Webpage has expired -- the website requires that you download it again. This accomplishes my objective, but I don't understand what is causing the "Webpage expired" state.
Any info/insights would be appreciated.