For a typical user registration and membership system, I follow the ASP.NET website, I would like to update the latest date and time of activity. Which of the following methods would be ideal to follow.
1
Whenever a request is made to a method that accesses data from a table of user accounts, it automatically (O_o) updates the date of last_account_activity
using GETDATE()
2
Call UpdateLastActivity()
as an external method after calling the method from the membership system.
information:
From a reliability point of view, # 2 is ideal because I cannot rely on # 1 when a user actively uses data from other tables, not user account tables.
What do you think? Do I have another way to do this?
the functions
.NET Framework 2.0
Asp.net 2.0
Implement user membership.
Sql Server 2005 Database
source share