title: PHP - Call A Function On Cookie Expiry
body: <p>I was just wondering if there is a pre-made system to call a function when a cookie expires. I was wondering if there was something similar to:</p>
  
  <pre><code>setcookie('cookie', "Value!", time()+300, onexpire{/*Self destruct*/});
  </code></pre>
  
  <p>If not I can think of a different way to do it</p>