Reputation: 738
I m developing web application using ASP.NET and I want to close the current user session if the computer is idle for 5 minutes. Idle not means for web application only, Its full system that means if no keystroke received from keyboard for 5 mins.
I got some info thru Google about Idle Tracker in VC++ but I dont know how to use that DLL in my web application. Link here.
Please guide me how to achieve this. I want to get the total computer active time and idle time thru asp.net for my employees productivity report.
Upvotes: 0
Views: 286
Reputation: 37660
ASP.Net is a bad choice for this requirement. ASP.Net runs on the server, while you want to track some client side events.
For security reasons, a web page can't have such privileges without the use of ActiveX or browser plugin, but it's complex to write, complex to deploy and a big opened window to security breaches.
You should create a classic desktop application, or search for an option in the GPOs, there's maybe something.
The simple solution I can suggest is :
If you choose this approach, I recommand you to move to http://superuser.com or http://serverfault.com, which are correct place for such cases
Upvotes: 1