I have a web application with 20 minutes set for the session and forms
authentication timeouts.
But... I have one user who wants a timeout of hours...
I figure I could use an IFrame to keep the session alive....
KEEPALIVE.aspx has:
private void Page_Load(object sender, System.EventArgs e)
{
Response.AddHeader("Refresh",8000);
}
MyRegPage.aspx has:
<IFRAME id=KEEPALIVE src="KEEPALIVE.aspx"
frameBorder=no width=0 height=0 runat="server"></IFRAME>
What is the best way to keep the forms authentication going for way longer
than the default?
andrew - 30 Oct 2007 00:15 GMT
Ok the line should be Response.AddHeader("Refresh",1190); where 1200 = 20
minutes.
> I have a web application with 20 minutes set for the session and forms
> authentication timeouts.
[quoted text clipped - 17 lines]
> What is the best way to keep the forms authentication going for way longer
> than the default?
Dave - 30 Oct 2007 05:21 GMT
> I have a web application with 20 minutes set for the session and forms
> authentication timeouts.
[quoted text clipped - 18 lines]
> What is the best way to keep the forms authentication going for way longer
> than the default?
I use an ajax method that updates a time stamp in my database for
locking purposes. This way the page never times out. you don't have to
do the database call just a simple are you there method will keep the
session alive.