Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
Managing user sessions in SAP UI5 application
You can make use of setTimeout and clearTimeOut functions. In order to trace the activity of the user, you can either make use of mouse move event or key press event or even both.
Example
You can reset the timer on the occurrence of either of the two events.
document.onmousemove = timeOut;
document.onkeypress = timeOut;
function timeOut () {
clearTimeout(<threshold value>);
setTimeout(sessionTimeout, <interval>);
} Advertisements
