Problem/Motivation
We should port the module to Drupal 10&11! I noticed some of the actions are "outdated" or not that nicely structured so we should take some time to do a proper cleanup and develop every feature (if possible) like the old D7 version.
Proposed resolution
Complete all the porting tasks.
Remaining tasks
- Create a new branch for D8 @saud
- Create new two custom permissions. @aziz
- Create configurations form. with three variables (force_logout_status, force_logout_login_message, truncate_all_sessions, force_logout_url_redirect) @3ssom
- Deny any user login if the module is enabled. @saud
- Redirect to specific URL when user trying to log in, instead of just showing a message. @saud
- Implement hook_uninstall(). @3ssom
- Force logout specific session or a specific user. It might be hook_menu in user page as a tab so admin can click (Force logout this user) if he has already saved session. @saud
--
- Change the way of relying on hook_init to just TRUNCATE sessions and prevent logged-in instead of working in hook_init to logout current logged-in users.
- TRUNCATE the sessions table using batch.
Comments
Comment #2
samaphpComment #3
samaphpComment #4
3ssom commentedComment #5
abdulaziz zaidComment #6
abdulaziz zaid