But Scott, if a user is seeing or editing his own profile that's make all the sense that lastAvitivityDate be updated to the currentdate!
My problem now is that I want to make some page like:
If everytime that I retrieve Profile.LastName... etc ASPNETDB update LastActivity! I'm in trouble because, as you said this isn't bad if only administrator see the profile but I want to make a page with profile contacts, etc. This page will be accessed from any user! I mean, any user will have the possibility to see a page with some profile contacts of any user that he want...
In the last case I'll use the same code...
I'm going to build some code to add to my forum.masterPage that insert on DB where the current user is in forum!
OtherLocalization could be:
"Is consulting him privateMessages List"
"Is consulting him privateMessage"
"Is consulting members Page"
"Is writing a post to the forum xxx"
Then, everytime I(or other user) call this procedure, SQL do a routine to see if any getDATE - LastActivity >7 minutes. If > 7 delete this user from the Forums_Active Table and select all others!
With that I can show the forumUsersOnline!
So, it's not so bad if I update lastActivityDate of membership table everytime one user see a profilePage of anotherUser! I'll update my DB everytime a user make a "NOT postBack"
But now i'm thinking:
I used this for version 1!
I would gain some benefits if i made all this ForumsOnlineusers with a list(of Active) cached in server!
Forgive me... Just thinking high...
But maybe i'll add some code to just update this value!
Because if you use:
member.LastActivityDate = LastActivityDate
You are retrieving all membership settings from this user and then update them again!
I really think that 2 ou 3 single functions and another procedure just to update this date it's possible a good idea (if you understand my bad english...)