svelandiag
svelandiag

Reputation: 4320

Rails 4 devise: How to log out all users

Im just about to perform an update to my app, I want to log out all users that have remembered session. I mean, once I deploy the update I want to force all the users to log in again.

What is the best way to do it?

Upvotes: 11

Views: 3633

Answers (1)

Jefferson
Jefferson

Reputation: 1559

If you're storing in active_record, just delete all the sessions. rake db:sessions:clear
If cookies, just change your session_token

Upvotes: 19

Related Questions