I have created an ASP.NET web application using MsSQL and Entity Framework 6.4.4 with individual account authentication, the app works fine but I would like to track user last login time/date as well as login count each time the user connects to the web application.
is there a way to do it, so far I din't find a solution in the many search done. thanks for the help
Raymond GPosted Jan 17, 2023, 7:27 AM
Hi, thanks for the feedbacks
I have followed Passang procedure and looks to work for a NEW login but I still miss track of users already logged in who checked the remember me, I will try to find a solution for this.
Vishal JoshiPosted Jan 17, 2023, 5:19 AM
Hello
There are several ways to track user login activity.
Thanks
Pasang TamangPosted Jan 16, 2023, 5:36 PM
You can check this article also https://www.c-sharpcorner.com/UploadFile/90fded/how-to-customized-identity-in-Asp-Net-mvc5/.
Btw, you will have to update last login date when user login into the system.
Regards,
Pasang
Pasang TamangPosted Jan 16, 2023, 5:32 PM
Hi,
If you are using ASP.NET Identity then you can customize it. Check below code example.
Check this article also https://procodeguide.com/asp-net-core/user-management-in-aspnet-core/. This explains a lot about customizing Identity.
Regards,
Pasang