How to end an inactivity session using Angular7

Asked

Viewed 97 times

1

I would like to end user activity if there is no click on any page of my application, I am using Angular and Nebular.

  • Jefferson gives to be done with Angular, could post some code that has tried and put more information as the period that the user is without interacting with the screen to trigger inactivity.

1 answer

0

In javascript there is a function for you to do this.

setTimeout(function(){ 
  alert("Teste"); 
}, 3000);
  • But I’d like him to identify that there was no mouse click, in which case it would work?

  • I think this answer might help you: Idletime

Browser other questions tagged

You are not signed in. Login or sign up in order to post.