Replies: 3 comments 2 replies
-
This is already supported, but not well documented, see #159 |
Beta Was this translation helpful? Give feedback.
-
One thing to realize about Rodauth is the goal is not to implement solutions to every possible application need. Instead, the goal is to be flexible enough that most application needs can be handled using the configuration methods. Definitely you could handle these needs via external Rodauth features that depend on the |
Beta Was this translation helpful? Give feedback.
-
Note that you can do this easily in rodauth-rails when using Active Record, through the association defined by the model mixin: account = Account.find(account_id)
account.active_session_keys.delete_all or if you want to use rodauth = Rodauth::Rails.rodauth(account_id: account_id)
rodauth.remove_all_active_sessions |
Beta Was this translation helpful? Give feedback.
-
We are starting to implement the
active_sessions
feature in our setup.However we are already looking into expanding/changing some of its features.
I was wondering if these would be useful for the main project. If so we can port them back to the repo, if they would be accepted.
remove_inactive_sessions
during the web request. Also document then how to do this task in a background process.remove_all_active_sessions
We want the user to be able to sign-out without "first" having to decide if they want to also sign out other sessions. Therefor we would like it to be possible toremove_all_active_sessions
for a short time after logout has completed.logout_at
timestamp. This can be useful for several reasons. One would be to support the previous feature, but also stats like "counting active_sessions this month" without having to use the audit log feature.Would be happy to discuss these ideas. Which ones could be added to the main
active_sessions
feature. Maybe these ideas can be an other feature to enable (ex:managed_active_sessions
for feature 2 & 3). Or are these not suited for the main project and should we consider making these separate gems?Beta Was this translation helpful? Give feedback.
All reactions