From mediawiki.org
MediaWiki extensions manual
Release status: stable
Implementation Special page , User activity
Description Displays the last time a user logged in
Author(s) Justin G. Cramer, Danila Ulyanov, Thomas Klein
Maintainer(s) Sophivorus
Latest version 1.6 (2021-02-04)
MediaWiki 1.29+
PHP 5.5+
License GNU General Public License 3.0 or later
Quarterly downloads 37 (Ranked 121st)
Translate the LastUserLogin extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

The LastUserLogin extension introduces a special page that displays a simple table of users and the last time they logged in.

This can be useful if your wiki is used as a knowledge base for outside personnel. If you have a requirement that they check the wiki prior to placing a call or email, LastUserLogin can be used to verify that this policy is being enforced.


  • Download and place the file(s) in a directory called LastUserLogin in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'LastUserLogin' );
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.


Once installed, visit Special:LastUserLogin to see the times at which each user last logged in.

This extension introduces the 'lastlogin' right which is needed to view the special page, and by default is only granted to admins (sysops).

Technical details[edit]

The extension works by updating the user_touched column every time a user loads a page. This is done via the BeforeInitialize hook.

See also[edit]