Padlocks

Keep a Record of User Logins

| 6 Comments

On a recent project I was working on, I was building an intranet site for a corporation and the client wanted to be able to check when each user logged in, to see whether they were logging in to the site to check the announcments.

I figured there would be a plugin for the job and naturally, there was. I came across Simple Login Log.

Track the logins of your usersAs the name might suggest, there’s not much to the plugin, but it provides a lot of useful information. Once the plugin is installed, it will keep a record every time someone logs in to the site. It records their:

  • User ID
  • Username
  • User role
  • Name
  • Date and time of login
  • IP address
  • Login result
  • and some extra information such as the destination and user agent.

The data is easily sorted by time, or IP address and you can filter the data by a particular user or even user role.

Categories: Plugins, Security | Permalink

What next?

Hire me

If you couldn't quite manage this yourself, find it too intimidating, or just don't have the time to do it, you can always hire Dave to do it. Please get in touch so that we can discuss your needs.

Leave a comment

If you have a question, update, or comment about the tutorial, please leave a comment. I try and respond to every comment, though it may take a few days, so please check back soon.

Let a WordPress Expert help you

Do you want to try this, but feel like you need a helping hand, in case something goes wrong? My service, The WP Butler, gives you access to WordPress expertise whenever you need it. Better yet, I'll keep your site backed up, updated and secure, so that you don't have to worry about it. It's all part of the service. Use coupon DIWW and save 15% on all plans.

Visit The WP Butler

Author:

Dave has been tinkering with WordPress for many years, and he now shares his WordPress knowledge here on Do It WIth WordPress to help others realise its impressive power. He can also be hired to help with your WordPress needs. Dave, who is British, is married to his best friend, Marti, with whom he has a beautiful daughter, Ellie. When he's not dabbling with WordPress, he's probably eating Triscuits or hummus, watching an indie film or British TV show, spending time with friends or family, or exploring the world.

6 Comments

  1. There are all kinds of overblown solutions for security – I like this plugin, simple and effective. At least if you have a site with multiple accounts you can keep track of who logs in when. Great idea!

  2. This looks like a fairly decent plugin to help keep an eye on user activity. I wouldn’t think it would use that much database space or resources. Hopefully there is a way to purge or remove records after a certain time frame or number of days so the database doesn’t get cluttered eventually. I am sure there are quite a few people that would be interested in additional logging for their website.

    • It’s doesn’t have that function inherently, and I don’t know if it only retains records for so long, but if it came down to it, you can always delete the old rows from the table pretty quickly (not ideal I realise).

      • Thanks for confirming that. I wouldn’t have a problem with removing the records from the database. I just thought if it had the feature built into the plugin it would save a little time. I’ll definitely keep this one in mind.

  3. Curious whether this plugin logs failed attempts to log in. I had my Admin locked out so many times, I got rid of that “user” account!

Leave a Reply