application timeout
Posted: Thu Jan 29, 2015 2:51 pm
I would like to start a new session when a user has no activity on the web page for 60 seconds.
So I launch an anonymous program which works fine for the initial signon. It executes a program which has menu options that a user can chose from. Each of the display files from the menu program, I've coded this on the onload of a record format.
var count = 60; // 300 seconds or 5 minutes
setInterval(function() {
count = count - 1;
if (count < 0) {
pui.start();
// to do - quit program or end session here
}
}, 1000); // call this every second (1000 milliseconds)
pui.onuseractivity = function() {
// reset counter
counter = 60;
}
After cycling for 60 seconds, the program will end and my first anonymous program appears again, but it continually cycling through not allowing me to enter in a userid and password.
So I launch an anonymous program which works fine for the initial signon. It executes a program which has menu options that a user can chose from. Each of the display files from the menu program, I've coded this on the onload of a record format.
var count = 60; // 300 seconds or 5 minutes
setInterval(function() {
count = count - 1;
if (count < 0) {
pui.start();
// to do - quit program or end session here
}
}, 1000); // call this every second (1000 milliseconds)
pui.onuseractivity = function() {
// reset counter
counter = 60;
}
After cycling for 60 seconds, the program will end and my first anonymous program appears again, but it continually cycling through not allowing me to enter in a userid and password.