How to enable Session History in Drupal
In this document, we’ll show you how users can view their session history to see when and where they’ve logged in. This helps them spot any suspicious activity and take action if needed. The User Session Management module is compatible with Drupal 8, Drupal 9, Drupal 10, and Drupal 11. Keep reading to see how it’s done.
Prerequisite:
- You will require the Premium Version of the module to configure the User Session History feature.
Configuration steps:
-
Navigate to Configuration > People > Session Management. (/admin/config/people/session-management/session-management)

Note: If you're not logged in, please log in using the miniOrange credentials used to purchase the license.
- Navigate to the Session Monitor Configuration section under the Session Management tab.
-
Turn on the Enable session history toggle button and click on Save Configuration.

Let's see how it works:
- Open a new browser, such as Edge, or a private/incognito window and log in (base_url/user/login) to the Drupal site.
-
Go to the Sessions tab (user/{user_id}/mo_sessions) to view the user’s complete active login history. It shows details such as login time, logout time, browser, and IP address.

Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion