0
Hi Raja,
Create a table named "LoginHistory" with the following fields
1) Id (bigint)
2) Userid(int)
3) LoggedInDateTime(DateTime)
In the Login button click, check if there are any records in the "LoginHistory" table for that day. If there are no records for that day then the current logged in user is the first user who has logged in for that day. Create a record for the logged in user.
And, now, you know weather the current user is the first logged in user for the day. If yes, then display an alert message as per your requirement.
Thanks,
Prawin
0
Hi,
You can save the daily first login time of users in to a table and check who is the first comparing others.