I created a very simple chat application, similar to ASP.NET, which displays current Online / Offline users:
I have a table with a DateTime column used as a TimeStamp. Each time a user raises a Postback event or similar Get event, I update TimeStamp. I want the server to create a batch process that I can use to check how long the user has been inactive, given that I know that the last time they were active. As soon as they are considered inactive (I’ll say in a few minutes), I want to set the value of another column to mark them as “Offline”.
Any suggestions would be appreciated.
source
share