C# asp.net MVC: When to update LastActivityDate?

Posted by Oskar Kjellin on Stack Overflow See other posts from Stack Overflow or by Oskar Kjellin
Published on 2010-04-25T19:40:07Z Indexed on 2010/04/25 19:43 UTC
Read the original article Hit count: 168

Filed under:
|
|
|

I'm using asp.net mvc and creating a public website. I need to keep track of users that are online. I see that the standard way in asp.net of doing this is to keep track of LastActivityDate. My question is when should I update this?

If I update it every time the users clicks somewhere, I will feel a performance draw back. However if I do not do that, people that only surf arround will be listed as offline.

What is the best way to do this in asp.net MVC?

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about c#