agustina_s
05-03-2004, 09:46 PM
Hi...
I have web application consist of 3 frame.
One of the frame (the header) which is an aspx file, is refreshed every 5 minutes. I need the autorefresh to check for alerts from the server.
The auto refresh is implemented using javascript as follow:
<script language="JavaScript">
<!--
var time = null
function move() {
window.location.href = "Header.aspx";
}
//-->
</script>
</HEAD>
<body onload="timer=setTimeout('move()',300000)" MS_POSITIONING="GridLayout">
Because of this auto refresh header, my asp.net application never timeout even though the user leave the browser for a long time.
The timeout in the web application is set during login as follow :
(I am using Forms Authentication)
Dim authTicket As FormsAuthenticationTicket = New FormsAuthenticationTicket(1, user_id, DateTime.Now, DateTime.Now.AddMinutes(60), False, role)
I am setting the timeout to 60 minutes.
However, even when the user leave the browser for more than 60 minutes, the page doesn't timeout because of the auto refresh header.
Is there anyway to solve this problem?
Thank you in advanced.
Sincerely
I have web application consist of 3 frame.
One of the frame (the header) which is an aspx file, is refreshed every 5 minutes. I need the autorefresh to check for alerts from the server.
The auto refresh is implemented using javascript as follow:
<script language="JavaScript">
<!--
var time = null
function move() {
window.location.href = "Header.aspx";
}
//-->
</script>
</HEAD>
<body onload="timer=setTimeout('move()',300000)" MS_POSITIONING="GridLayout">
Because of this auto refresh header, my asp.net application never timeout even though the user leave the browser for a long time.
The timeout in the web application is set during login as follow :
(I am using Forms Authentication)
Dim authTicket As FormsAuthenticationTicket = New FormsAuthenticationTicket(1, user_id, DateTime.Now, DateTime.Now.AddMinutes(60), False, role)
I am setting the timeout to 60 minutes.
However, even when the user leave the browser for more than 60 minutes, the page doesn't timeout because of the auto refresh header.
Is there anyway to solve this problem?
Thank you in advanced.
Sincerely