title: Execute PHP callback after timeout on server
body: <p>I'm designing a PHP login system and I would like to allow users to reset their password if they've forgotten it. The idea is to send a (hashed) custom reset code via email. When user clicks on link, the code is compared with the corresponding stored in database. </p>
  
  <p>To enforce security, I would like to clear code stored in database after 1 day from the request. On forgotten request, I would launch a timeout which runs on server (even if user closes browser) and after 1 day invokes a callback which clears database code. Is it possible?</p>