Why unable to Clear the SetInterval in javascript ? is this approach is wrong?


In one of my app, angular based application have written the user session time put if user gets idle for 10 minutes , gets the warning pop up in 5th minute and after 10 minutes , needs to logout.

This below code is working properly for the application. In one module have to clear the setinterval, i am not able to clear it by using clearInterval(idleCheck); .so something went wrong in below code.

angular run block have implemented user navigated between states, extend the time for 10 minutes.

More to know:http://stackoverflow.com/questions/43634843/unable-to-clear-the-setinterval-in-javascript-is-this-approach-is-wrong
Demo Github:https://github.com/MohamedSahir/UserSession


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.