0
erkateknoloji created
Hi,
can we see that how long has the user logged in one day? (Kullanıcı bir gün içerisinde ne kadar süre login kalmış?)
- v7.0.0.0
- angular
- .net core
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
1 Answer(s)
-
0
Hi,
You can access this information using AuditLogs. You can query for AuditLogs with the filter below;
(MethodName LIKE '%LogOut%' or MethodName LIKE '%Authenticate%') AND ServiceName LIKE '%TokenAuthController%' AND Exception IS NULLThis is for SQL but you can simply write it in LinQ and also add UserId filter to queyr for the user you want to get login duration. After getting records, you can calculate the duration between
AuthenticateandLogOutlogs.Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)