Original Post
I have a process where a player is allowed only a certain number of Hires (units), and a play-tester has discovered that he can multi-click the Hire button, getting more than the allowed amount of units. This happens because each click apparently generates a POST request to the server. I am looking for ideas of a method to implement some sort of locking mechanism that is not as "brute force" as MySQL table locking. That is not an option, as it would lock many crucial tables used by other players. Disabling the button on click would only prevent the naive users from exploiting this, as a simple hack could submit a "fake" form multiple times. So, I am stumped. Something like a semaphore in the database? A session variable? Something else?