server-side timer?

4

I'm doing a question game in PHP, the user will have 15 seconds to answer each question, how to prevent the user from changing the timer via inspect element and add seconds?

Just adding details, it is impractical to let the user change the time from 15 to 50 seconds for example and check if the time beats via PHP because I want to implement the game so that 2 users play simultaneously, then both would have 15 seconds and would advance the questions together.

    
asked by anonymous 03.03.2016 / 20:26

1 answer

-1

Do this off the page, create a file just for that, and in it saves the time information passing, then when the user changes in the clear inspection, the value that he type, regardless of which, returned to normal according with the variable of your file, and even, can make a script to verify if it was altered by the user and seila, disqualifies it of its game

    
04.03.2016 / 05:15