Basically I’ve created a system which basically uses web scrapping to pull out “vote count” from a gaming top site and store it as a session. What the system is used for is to bring up a new vote window with that particular top site and ask the player to vote for their server, after a few seconds php is referenced again and web scrapping used to pull out the vote count, if vote count is higher than the 1 set in session > proceed otherwise repeat the same step.
The issue is that sometimes you might get multiple players voting for the same top. So lets say player1 clicks on the banner to open the vote site (the session is set) and just leaves the window open, mean while player2 clicks on the banner and actually votes in the tops, if that happened both player1 and player2 would be allowed to proceed.
Any ideas on how to prevent that? Thanks.