5 ms·
So using Devise gets around this issue right?
by marcamillion 13y ago
So using Devise gets around this issue right?
- thibaut_barrere 13y agoIf you use Devise make sure to read this, too: http://stackoverflow.com/questions/11281141/after-logout-if-i-push-back-button-i-can-see-the-last-page-which-requires-logi http://stackoverflow.com/questions/11281141/after-logout-if-... (I was quite surprised a long while back :-)
- marcamillion 13y agoThis is interesting...still doesn't answer my question though :)
- thibaut_barrere 13y agoSorry! I didn't mean to imply that it was answering your question. I thought bringing that information was still fairly useful, potentially.
- bhahn 13y agoI also wondered whether Devise handled this issue and looked at the source. Devise doesn't address this issue. It relies on warden underneath and serializes the user into the session without any sort of expiry (https://github.com/plataformatec/devise/blob/master/lib/devise/models/authenticatable.rb#L202 https://github.com/plataformatec/devise/blob/master/lib/devi...). There are a lot of options for remediation, though, like overriding the aforementioned serialization hash to attach an expiry, or setting an expiry in a separate key in the session.