timeout... session + forms authentication

G

Guest

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?
 
D

Dave

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?

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top