In my project I need an application lock (same as windows lock). If the application is idle for a time period the application should be locked i.e, the login window for the
Set a timeout on load, and every time an "active" action happens (you'll need to hook up to them), reset the timer back to the start.