473,386 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Setting the timeout for a specific page.

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.
Jul 23 '07 #1
1 1654
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,

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

Free code library at:
www.aboutfortunate.com


"Mufasa" <jb@nowhere.comwrote in message
news:u4**************@TK2MSFTNGP03.phx.gbl...
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.

Jul 23 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Manuel | last post by:
i am using sqlserver 2000, and i was wondering how do i go about setting the query time out. is there a way to configure the query timeout for a specific user id?
13
by: Patrick | last post by:
I understand that with IIS5.1 on Windows XP Professional SP1, I can 1) Either set under IIS Manager-> Any specific Virtual Directory-> Configuration->Options->ASP Script timeout for all pages...
3
by: Hermes | last post by:
Hi All, Is there a way to specify the server timeout for IIS in an asp file rather than with IIS. As I would just want one page to have a long timeout period but limit the other pages in the...
2
by: - | last post by:
Hi there All, Don't know if this is possible at all, but here goes. I've got a page (an active server page if that makes any difference), that is pulling some sticky content from...
1
by: Scott Walters | last post by:
Hi, I have an asp.net webapp that uses some javascript in a hidden frame on the browser to poll the server every 30 seconds, using an http post. I also want my sessions to timeout in the...
3
by: Jim Heavey | last post by:
I am wanting to find out a way to timeout my session This issue is that the user retrieve data from a datatable and that data get stale over time, so after 20 minutes, I want to be able to tell the...
9
by: tshad | last post by:
I have the following in my web.config in my application root. <forms name="staffing" loginUrl="/applicant/EELogin.aspx" timeout="400" protection="All" path="/" /> I assumed this meant the...
4
by: UJ | last post by:
I have a page where the user can upload a video file. As you can guess, this may take a while. Is there a way I can change the session timeout for just this one page? I would also want to change...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.