Immediate Logout
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Component created
Component changed
Component body
A Drupal 8 module to immediately log out a user whose session has ended by any means
by Pravat Kumar Jena
This module will usually be used with either Session Limit D8 or Automated Logout D8 in order to reload the current page for users who have been automatically logged out by logging in at another location or from another tab.
If You have a private access website and you want to be sure that users are not sharing accounts. You can use Session Limit to ensure that each user can only be logged in from one location at a time. However, a user will not be logged out until they reload the page. Immediate Logout runs an ajax script on a configurable timer to check to see if the user is still logged in. If they are not, the current page is reloaded and Session Limit displays a message telling the user that they have been logged out because someone else is using their account.
Another effect of this module is that if a user has multiple tabs open of the same Drupal site, and they log out in one tab, they will be logged out in all tabs.
I created this D8 module since as of today (12/10/2017) no D8 version of Ejector Seat module is available. Credits