aEr_aEr
12-18-2002, 07:43 AM
Hi,
i made a little script that shows a progress bar which shows the time left in the session. the script is
var tijd = new Date();
function sessie_timeOut() {
var t = new Date();
var verschil = new Date();
verschil.setMinutes(t.getMinutes()-tijd.getMinutes());
verschil.setSeconds(t.getSeconds()-tijd.getSeconds());
var min = verschil.getMinutes();
var sec = verschil.getSeconds();
document.all.balk.width= Math.round(60-(((min*60)+sec)));
document.all.balkPassed.width = 60-document.all.balk.width
if (((min*60)+sec)==60){
document.all.balkPassed.src="/blauw.gif";
}
window.setTimeout("sessie_timeOut()", 60);
}
the script is called with the body onload event.
the asp session timeout is set to 1.
so i thought when te progres bar is empty the session would be ended. But after the bar is empty the session is still alive.
Is it possible that js keeps the asp session alive. Or am i doing something else wrong?
i made a little script that shows a progress bar which shows the time left in the session. the script is
var tijd = new Date();
function sessie_timeOut() {
var t = new Date();
var verschil = new Date();
verschil.setMinutes(t.getMinutes()-tijd.getMinutes());
verschil.setSeconds(t.getSeconds()-tijd.getSeconds());
var min = verschil.getMinutes();
var sec = verschil.getSeconds();
document.all.balk.width= Math.round(60-(((min*60)+sec)));
document.all.balkPassed.width = 60-document.all.balk.width
if (((min*60)+sec)==60){
document.all.balkPassed.src="/blauw.gif";
}
window.setTimeout("sessie_timeOut()", 60);
}
the script is called with the body onload event.
the asp session timeout is set to 1.
so i thought when te progres bar is empty the session would be ended. But after the bar is empty the session is still alive.
Is it possible that js keeps the asp session alive. Or am i doing something else wrong?