last_login
44 sites
Security covered
This module is used to display the last login time of current logged in user.
This module stores the last login time in a session variable and pass this variable to
Last login time Block. It is a lightweight module which do not create an extra table
in a database. It is easy to install & use.
To display the last login time of current logged in user, You need to do the following.
Installation:
Drupal 7
- Download the module and place in sites/all/modules directory.
- Enable the module in admin/modules.
- Now goto admin/structure/block.
- Follow only one of the both ways mentioned below:-
- Enable the Last login time block and assign a specific region.
- OR
- You can directly print session variable ("user_last_login") in your template file.
- You need to logout and login again to see the last login time.
Drupal 8
- Download the module and place into the modules directory.
- Enable the module in admin/modules.
- Now goto admin/structure/block.
- Click on "Place block" button and assign a particular region to "Last Login Time" block.
- You need to logout and login again to see the last login time.