Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2007

Tip: Looking for answers? Try searching our database.

timeout... session + forms authentication

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
andrew - 30 Oct 2007 00:13 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.