Hi,
I have implemented a popup which is displayed 5 minutes before the session is expired.
My application contains asp and aspx pages. Presently I have implemented the solution which is mentioned below.
function pageLoad(sender, args)
{
TimeOutFunction();
}
//Time out function
function TimeOutFunction()
{
setTimeout(
function()
{
//alert("Your session is going to expire in few minute.");
var sessionResponse = confirm('Your session is about to expire! Click OK to continue your session.');
debugger;
if (sessionResponse == true)
{
if ( document.forms(0)== null)
{
location.reload();
}
else
{
document.forms(0).submit();
return true;
}
}
else
{
return false;
}
}
,6000);
}
The function pageLoad is called on master page.
I want to retain the values which are filled in the controls like textbox, dropdown, etc. This is not happening with this code.
Thanks for your help
Mandy