Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logging out using logout url does not logout facebook user #162

Open
micopcm408 opened this issue Jul 23, 2014 · 2 comments
Open

logging out using logout url does not logout facebook user #162

micopcm408 opened this issue Jul 23, 2014 · 2 comments

Comments

@micopcm408
Copy link

I am trying to logout directly from url (users/logout). It does logged out after redirect. Then when I refresh the page, it's logged in again. But when logging out using the logout link generated by the helper, it logouts completely with no issue. Is it possible to logout a facebook user using users/logout?

@scrx
Copy link

scrx commented Aug 7, 2014

Helper detects existing facebook session and login you again, what you can do is create logout button like this

echo $this->Facebook->logout(array('label' => 'Logout', 'redirect' => array('controller' => 'users', 'action' => 'logout'))); 

this will logout you from facebook and redirect you to users/logout where you can continue and do like auth->logout()

@NickBusey
Copy link
Contributor

Make sure your users logout method includes: $this->Session->destroy();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants