Storing a server-sided countdown variable
<p>I am currently working on a function where there is a countdown before you can perform the same action again.</p>

<p>Meaning: perform action, then you have to wait 30 seconds before you can perform the action again.</p>

<p>My problem is: how do I make sure the user cannot just re-enter the page to reset the countdown if I were to use a JS function?</p>

<p>I do have a MySQL database if that helps.</p>

<p>Thanks in advance.</p>