Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a user_id column to the modx_sessions table #16624

Open
muzzwood opened this issue Sep 30, 2024 · 0 comments
Open

Add a user_id column to the modx_sessions table #16624

muzzwood opened this issue Sep 30, 2024 · 0 comments
Labels
feature Request about implementing a brand new function or possibility.

Comments

@muzzwood
Copy link
Contributor

Feature request

Summary

Add a user_id column to the modx_sessions table. When a session is created, if we have a user id, set it there.

Why is it needed?

This will allow easy access to all of a user's sessions, if you want to force a single user out of all their sessions you can delete all records for their user id. Currently the modx_user_attributes table has a sessionid column that stores the most recent session id, but it overwrites any previous ones. So the user keeps access to those.

Suggested solution(s)

Adding a user id to the table should work. There may be a reason I'm unaware of making this a bad idea though, so if there is feel free to tell me to go away :D

@muzzwood muzzwood added the feature Request about implementing a brand new function or possibility. label Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Request about implementing a brand new function or possibility.
Projects
None yet
Development

No branches or pull requests

1 participant