title: Facebook fbsr and session wont delete
body: <p>I have a logout.php page. This gets called by clicking logout that has this javascript attached to it:</p>
  
  <pre><code> FB.getLoginStatus(function(response) {
      if (response.status === 'connected') {
        button.onclick = function() {
          FB.logout(function(response) {
            window.location = 'logout.php';
          });
        }
     }
   });
  </code></pre>
  
  <p>On the logout page i have this php code running:</p>
  
  <pre><code>if (isset($_COOKIE['fbsr_' . $app_id])) {
      setcookie('fbsr_' . $app_id, $_COOKIE['fbsr_' . $app_id], time() - 3600, "/");
      setcookie('PHPSESSID', $_COOKIE['PHPSESSID'], time() - 3600, "/");
  
      unset($_COOKIE['fbsr_' . $app_id]);  
      unset($_COOKIE['PHPSESSID']);
  }
  </code></pre>
  
  <p>The problem is that the javascript does log someone out. The php script will not remove the fbsr and the phpsessid cookies. How can I get around this issue?</p>