Ben PHP kullanarak inşa edilmiş bir web sitesinde giriş sistemi için Facebook Connect API kullanıyorum. Bir kullanıcı oturum açmış olup olmadığını belirlemek için basit bir yolu yoktur
$fb = new Facebook($api, $secret);
$fb->get_loggedin_user();
The above function always returns a user id, once a user has authenticated with the site, even if they sign out of Facebook, it still returns their user id.
I've worked on this for a while, and after looking around, I think the reason it does this is because when a user is authenticated on the site, the Facebook JavaScript API stores cookies that are used to save information about the session.
However, if the user signs out of the regular Facebook session, the cookie is still returning values ,even if the session is no longer valid.
My question is how do I update the cookies so that they don't give me values when the session is no longer valid?