Making Authlogic 'not remember me'
Posted
by user57618
on Stack Overflow
See other posts from Stack Overflow
or by user57618
Published on 2010-06-07T04:19:43Z
Indexed on
2010/06/07
4:22 UTC
Read the original article
Hit count: 268
authlogic
|remember-me
I want my user session to end when the user closes the browser. But authlogic seems to remember the session even when a new browser is opened. I have tried setting @user_session.remember_me = false but that doesn't help. I drilled down to the save_cookie method which is indeed saving the cookie with :expires => nil. Am I right in assuming that this will expire the cookie with the browser session?
The only peculiar thing about my authlogic configuration is that I set c.perishable_token_valid_for(0) so that the invitation code never expires. Not that I think it has anything to do with this ..
© Stack Overflow or respective owner