Fellow Stranger
Fellow Stranger

Reputation: 34053

Possible to reset sessions for all users?

Due to change in authentication procedure I need to reset all sessions for all users, how do I do this in Rails 4?

Upvotes: 0

Views: 72

Answers (1)

DiegoSalazar
DiegoSalazar

Reputation: 13531

You can change the secret_key your app uses to encrypt cookies in config/initializers/secret_token.rb or you can change the name of the cookie key in config/initializers/session_store.rb either of these changes will invalidate all sessions and require them to be recreated (login again)

Upvotes: 2

Related Questions