hi there,
i've 2 questions for you guys....
1: is there any way to "force" a session_onend() , session timeout or
at least call my logout method when a user leaves the application
window without logging out? i.e: using the "X" in the right corner???
i'd like to reset to their default all my variables session?? is this
possible???
2: I've succesfully been able to ask the user to confirm whether he
wants to extend his session before it ends due to inactivity. This
works perfectly and my question is: if the user is not there to answer
the question is there any way to automaticaly end the session after 1
minutes without any answer???
i.e:
function UserToConfirm()
{
if (confirm('Hey.. .your session is about to time out extend?'))//if
the user
//is not there to answer, then force log out ho to do this?????
{
clearTimeout(Se ssionTimer );
}
else
{
parent.top.loca tion.href = 'LogOut.asp';
}
}
function SetSessionTimer ()
{
if(SessionTimer > 0)
{
clearTimeout(Se ssionTimer );
}
TimeOutID = setTimeout("Use rToConfirm()",1 20000);//2
minutes
//before session ends
}
and i call my SetSessionTimer () method in my body onload event...
thanks a lot...
i've 2 questions for you guys....
1: is there any way to "force" a session_onend() , session timeout or
at least call my logout method when a user leaves the application
window without logging out? i.e: using the "X" in the right corner???
i'd like to reset to their default all my variables session?? is this
possible???
2: I've succesfully been able to ask the user to confirm whether he
wants to extend his session before it ends due to inactivity. This
works perfectly and my question is: if the user is not there to answer
the question is there any way to automaticaly end the session after 1
minutes without any answer???
i.e:
function UserToConfirm()
{
if (confirm('Hey.. .your session is about to time out extend?'))//if
the user
//is not there to answer, then force log out ho to do this?????
{
clearTimeout(Se ssionTimer );
}
else
{
parent.top.loca tion.href = 'LogOut.asp';
}
}
function SetSessionTimer ()
{
if(SessionTimer > 0)
{
clearTimeout(Se ssionTimer );
}
TimeOutID = setTimeout("Use rToConfirm()",1 20000);//2
minutes
//before session ends
}
and i call my SetSessionTimer () method in my body onload event...
thanks a lot...
Comment