asp.net - How to check if a user is still active? -


How do I check that the user is still active, like every 1 minute? I should know which user is active and who is not! I am not using ASP.NET subscription provider!

Let's login for a user to log in from 3 different locations simultaneously, if only one user, who was 4 logged in, another place Try logging in again, I would like to block 4 logins.

I have some problems about it too! If the user unplugs the connection cable or closes the browser, how can I find out that the user is still active?

I need to weigh everything that you are trying to accomplish, because you have a Quite unclear questions are asked. However, I would be the best way to decide if a user is active or not, to check whether their ASP.NET session is still alive or not. If a user is still browsing your site, then there is no "accurate" way to check it, because they are sitting there, or can be AFKs, or live in another program on your computer ... Dozens, if hundreds of scenarios can not exist on the customer side

However, the user's ASP .NET session will only survive for a specific period between the user (GET, Post, etc.) for each activity. Generally after 20 minutes, ASP Net users will clear the session, and when this happens, it will set a session_out event that can be controlled in Global.assx or custom HTML module also. Then you will be able to mark that user as inactive in your database, send an email, or do whatever it needs to do.


Comments