title: How can I set PHP cookie to user pc so that user can't apply again within 24 hours?
body: <p>After successfully submitting the form I am setting the submission time using PHP cookie. </p>
  
  <p>If the user again submits the form then I am checking if the time is past 24 hours or not. </p>
  
  <p>If it's not passed 24 hours then I am showing an error message. So for that in the Chrome browser, it's working for me with below code:</p>
  
  <p><strong>After successfully submitting the form</strong></p>
  
  <pre><code>$cookieName     =   'submission_time';
  $cokkieValue    =   time();         
  
  setcookie($cookieName, $cokkieValue, time() + (+60*60*24*30 ), "/");
  </code></pre>
  
  <p><strong>If user again submit the form</strong></p>
  
  <pre><code>if(isset($_COOKIE['submission_time'])) {
  
      $submissionTime =   $_COOKIE['submission_time'];
      $currentTime    =   time();
      $timePassed     =   ($currentTime - $submissionTime ) / 60 * 60;
  
      if($timePassed &lt; ALLOWED_SUBMISSION_TIME ) {
          echo "&lt;div class='alert alert-warning'&gt;You can record the sales after 24 hours! Please wait..&lt;/div&gt;";
          die();
      }
  
  }
  </code></pre>
  
  <p>now, I am again submitting the form with IE browser but it's don't showing me that warning message that set like: </p>
  
  <blockquote>
    <p>You can record the sales after 24 hours! Please wait..</p>
  </blockquote>
  
  <p>Is there any workaround for that? </p>
  
  <p>Basically, I want to prevent multiple submission within 24 hours. </p>