1

So I have a Rails application using Devise, and I'm a little confused as to how Devise Rememberable works. I have :rememberable enabled in my User model. When I go to log in WITHOUT checking the Remember me? box, I'm still logged even after a browser close AND a computer restart.

If this is a case, what is the point of rememberable? Am I missing something?

Thanks!

4

1 回答 1

2

Removing expire_after: 504.hours from config/initializers/session_store.rb seemes to have solved the problem, rather than removing the file altogether.

Source: how to clear devise session on browser close?

于 2013-10-24T03:12:41.527 回答