Is there any way i can trace when user has Login (i.e. insert time of login in a log table) and how many users are currently active. I am using Form Authentication. I have search but i got stuff regarding custom login page. Is it possible to trace this using form authentication?
i have tried to insert a log into table on Application_LoggedIn
Private Sub Application_LoggedIn()
Dim A = Application.Current.CreateDataWorkspace.ApplicationData.Logtable.AddNew()
A.name = User.Name
A.time = DateTime.Now
A.dates = DateTime.Now.Date
A.Activity = "Login"
Application.Current.CreateDataWorkspace.ApplicationData.SaveChanges()
End Sub
But it does not seems to working. I checked in debug mode, the pointer passed but data is not inserted. I am not getting where i am doing wrong.
Is there any way i can call applicationdataservice public functions on client end?