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

samaphp created an issue. See original summary.

samaphp’s picture

Issue summary: View changes
samaphp’s picture

Issue summary: View changes
3ssom’s picture

Title: Port to D8 » Port to D8/D9
abdulaziz zaid’s picture

Title: Port to D8/D9 » Port to D10/D11
Issue summary: View changes
abdulaziz zaid’s picture

Version: 7.x-1.x-dev » 3.0.x-dev
Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.