Replies: 1 comment 5 replies
-
The purpose of the remember token is to allow you to be logged in after your session cookie expires, and to me, that would include when the active session information expires as well. If you are forgetting login when the active session expires, I don't see the point of using the remember feature. If this is a case where you are purposely deleting active session data, you should also be deleting the remember token at the same time, IMO. The remember function already hooks into |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the official Rails demo app, I have the following in my Rodauth app:
I just realized, if my active session expires or gets deleted, I will automatically get logged back in from the remember cookie. Would it make sense if Rodauth automatically removed the remember cookie in that case (but not necessarily the token in the database)? I believe this can currently be achieved as follows:
Somewhat related, it would be convenient if we could have a single method to logout the user and remove their remember cookie. I got a report recently that
after_change_password { logout }
didn't automatically work, because it turned outforget_login
also needed to be called.Beta Was this translation helpful? Give feedback.
All reactions