How to close the session in asp.net if computer idle for 5 mins -
i m developing web application using asp.net , want close current user session if computer idle 5 minutes. idle not means web application only, full system means if no keystroke received keyboard 5 mins.
i got info thru google idle tracker in vc++ dont know how use dll in web application. link here.
please guide me how achieve this. want total computer active time , idle time thru asp.net employees productivity report.
asp.net bad choice requirement. asp.net runs on server, while want track client side events.
for security reasons, web page can't have such privileges without use of activex or browser plugin, it's complex write, complex deploy , big opened window security breaches.
you should create classic desktop application, or search option in gpos, there's maybe something.
the simple solution can suggest :
- create small script file logoff user (search logoff command line)
- create scheduled task :
- triggers when specified amount of idle time has been reached
- launch script file wrote
- deploy scheduled task users using whatever method want
if choose approach, recommand move http://superuser.com or http://serverfault.com, correct place such cases