title: Preventing form re-submission without causing troubles with cookies
body: <p>I have searched online for some solutions to avoid the resubmission of the form when a user hits the back button, and I have found few solutions similar to the below:</p>
  
  <pre><code>header("Cache-Control: no cache");
  session_cache_limiter("private_no_expire");
  </code></pre>
  
  <p>this works very well with me, however, I realized later that this would prevent setting cookies expiry date, thus my users would be able to access pages even after logging out!.</p>
  
  <p>Can you please advise some other solution that pages don't ask to resubmit forms, however, don't affect the ability to delete (expire) cookies.</p>