title: how to retrieve login status while using offline_access
body: <p>I'm facing a little problem because of the offline_access permission I'm requesting for my website.</p>
  
  <p>I'm using the code that is given in the documentation in order to define if someone is logged or not :</p>
  
  <pre><code> if ($user) {
      try {
         // Proceed knowing you have a logged in user who's authenticated.
         $user_profile = $facebook-&gt;api('/me');
  
          } catch (FacebookApiException $e) {
          $user = null;
        }
   }
  </code></pre>
  
  <p>But as I have an offline access, it seems that I'm always having a value for $user. So how can i log out someone from my website ? </p>
  
  <p>Is there any way to retrieve a status via the php SDK ? </p>
  
  <p>Thanks for the help,</p>
  
  <p>Stéphane</p>