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 / July 2007

Tip: Looking for answers? Try searching our database.

Setting the timeout for a specific page.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mufasa - 23 Jul 2007 12:56 GMT
Is there a way to set the timeouts for inactivity to be specific for a
specific page?

My memory is the answer is no.

I have a script that is on every page at the moment that after twenty
minutes of inactivity automatically logs you out. I can turn that off for
the specific page but I assume I'll lose my session variables and what not
at the timeout.

The reason for all of this is that we allow our users to upload video files
and it takes a while for them to upload.

Any thoughts would be appreciated.

Jeff.
S. Justin Gengo - 23 Jul 2007 17:15 GMT
Jeff,

You are correct, but maybe you could come up with a workaround:

Using the same script you currently have you may be able to do so. I would
do it like this:

Create a script that refreshes the session every five minutes (or whatever
value you'd like). Also set up a loop that counts the number of times the
script has refreshed the page. To maintain that count between postbacks that
value could be stored in a hidden field or a cookie. Then you can vary a
page-timeout based on how many times you allow the script to loop before
logout. You could also open up a secondary window for this script to run in
so that you don't interfere with the upload. Or you may want to look into
utilizing multi-threading for the uploads.

Regards,

Signature

S. Justin Gengo, MCP
justin@aboutfortunate[-NoSpam-].com

Free code library at:
www.aboutfortunate.com

> Is there a way to set the timeouts for inactivity to be specific for a
> specific page?
[quoted text clipped - 12 lines]
>
> Jeff.

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.