Exit Logout Mode

I have the following script:

  • The user logs in using Facebook connect (devise, omniauth).
  • The user starts browsing the site.
  • User logs out of Facebook
  • The user can still view. How can I prevent this?

Basically I want to redirect the user to the login page if he logged out of Facebook

I am using Rails 3.1 with an omniauth application.

+5
source share
1 answer

, . , Facebook - - Facebook , Facebook - OAuth , . ; cookie user_id, Devise .

Facebook , .

, , OAuth , , Facebook .

- ? , ?

0

All Articles