Mike Silvis
Mike Silvis

Reputation: 1309

using devise how do i keep a user logged in past closing the browser

I have a rails app using devise and even with the remember me button clicked when i close the browser and reopen it it loses all history of the user ever being logged in.

The session should persist well beyond that. How do i change this?

I am not using timeoutable or anything that auto logs the user out.

Thanks!

Upvotes: 1

Views: 920

Answers (2)

Mini John
Mini John

Reputation: 7941

On the user Model =>

:rememberable

Upvotes: 0

bratsche
bratsche

Reputation: 2674

Did you look at the 'Rememberable' module in Devise?

http://rubydoc.info/github/plataformatec/devise/master/Devise/Models/Rememberable

Upvotes: 2

Related Questions