Last Login Information Not Shown

Namita Patil asked on March 24, 2021 03:02

Hi,

We are using Kentico 12 version for our admin and live website development. We wanted to check if there is any setting in Kentico admin, which will present information about previous sessions to users.

Users module of the application cannot help detect unauthorized access to the application. Presenting information about the previous session such as IP address, login and logout time greatly increases the likelihood a user will notice unusual activity on their account. If unauthorized access is not detected no response measures can be taken. I can see if user with admin role, can go to General tab of any user - here we can see some session info, but is there any particular place where we can get consolidated records?

Can you please give any setting you know, which can help us to get these details, it will be great help?

Thanks! Namita Patil

Recent Answers


Juraj Ondrus answered on March 24, 2021 07:20

There is no such a setting. You will need to either create a custom report and use SQL query to get those details or, you can create a custom module if you want to have some kind of interface for the users with these information and use the API to work with the user object.

1 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on March 24, 2021 14:26

In the CMS_User table there are a few fields which track this information BUT it is updated immediately when the user logs in. If you wanted to keep a log of users actions (log in, out, etc), you could do the following:

  • create a custom module with a custom class to store the event logs. The custom class (database table) would have the following fields, EventLogID, EventLogUserID, EventLogCreatedDate, EventLogEventName, EventLogEventDescription, EventLogIP, EventUserAgent, EventUrlReferrer.
  • create global handlers for the user's authentication events
  • during those authentication events, create records and insert them into your new custom module table.
  • create a custom webpart to capture the current logged in user and display their login history
1 votesVote for this answer Mark as a Correct answer

Namita Patil answered on April 1, 2021 19:43

Just wanted to check if this functionality is available in Kentico 13 by any chance?

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on April 1, 2021 19:47

It's not part of v13, your solution is to do what was suggested above.

0 votesVote for this answer Mark as a Correct answer

Namita Patil answered on April 1, 2021 20:58

Got it! Thanks Brenden for your quick response! Appreciated your help on this!

Namita

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.