Login Activity
Categories
Component ID
1309036
Component name
Login Activity
Component type
module
Maintenance status
Development status
Component security advisory coverage
covered
Downloads
2622
Component created
Component changed
Component body
This module logs user login activity for every user on a Drupal installation. This can be used to provide important user information about when and from where their user account was used to login to the website. If a user notices unusual activity, the user might take required action to protect the account from getting compromised.
The module logs the following information about a login activity;
- User's UID.
- $_SERVER['HOST_USER_AGENT'] string.
- IP address of the host being used for the login activity.
- UNIX timestamp.
Further, it also provides a report page at admin/reports/login_activity where login activity related information of all the users is displayed in the form of a report.
Dependencies
This module depends on the browscap module or PHP's get_browser(), which needs to be configured in php.ini.
- Browscap module: Browscap provides an improved version of PHP's get_browser() function. While this module is optional, it is preferred as it's easier to maintain and better suited for shared hosts than using PHP's get_browser().
- PHP Browscap and get_browser(): this requires you to set the browsercap directive in your php.ini file and make it point to a valid browscap.ini file which is used as a database for extracting information using the get_browser() function. A latest browscap.ini can be downloaded from http://browsers.garykeith.com/downloads.asp. Further details on setting up browscap could be found here http://stackoverflow.com/questions/2036956/browscap-ini-directive-not-set.
Features to be added soon:
- Activity categorisation on the basis of login and logout.
- Notification of login/logout information for a particular session.
- Notification of concurrent logins.
- Views integration.
Login activity of all the userswith appropriate filters. (Note: This will be an admin feature for site admins)
