title: Proper way to set cookie expire for mac devices
body: <p>I have login system on one of my projects witch use my own login system and facebook login. Issue is Facebook login doesn't seems to be logging out on mac devices.  </p>
  
  <p>My code</p>
  
  <pre><code>session_start();
  
  if(isset($_COOKIE['checkuserst'])) {
  unset($_COOKIE['checkuserst']);
  setcookie('checkuserst', '', time() - 3600, '/');
  }
  
  unset($_SESSION['username']);
  
  header("Location:index.html");
  </code></pre>
  
  <p>All windows browsers cookies are expiring except for safari and in mac none of the browser cookies are expiring. </p>
  
  <p>Can someone point me the correct way to fix this.</p>