Jump to content
MakeWebGames

Recommended Posts

Posted

You could set some form of session/cookie and store it in the users table on the page before the "crime do" page. Then when a user selects to do a crime validate the session against the database. This would require users to visit the crime list page to complete a crime.

Posted
is there a way to stop users from refreshing on pages like crimes and gyms etc.

You can add a 5 second time rule like some games have, when mail can be sent... don't see though why you would want no refreshing on crimes and gym, unless you are worried someone is using a bot.

Posted

You could set it up so that the result of the crime is posted into a sesssion ... have a refresh set to 0 seconds where it echoes out the message as well as having a link that they have to click to go back to the crime and then unset the session.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...