Solved

Set bigger timeout for a specific ASP page

Posted on 2004-10-19
5
3,335 Views
Last Modified: 2008-02-01
Hi all,

I have an ASP upload page that fails in timeout for end-users of my intranet app.
They are on a remote site with a low bandwidth wan connection.

I'd like to set a bigger timeout for the upload page, but not for the other pages.

I'm aware of the
Server.ScriptTimeout property, but I don't want to set this timeout for the whole intranet app.

Session.Timeout could help, but how can I get more specific ??

Any ideas welcome

Hilaire
0
Comment
Question by:Hilaire
5 Comments
 
LVL 15

Assisted Solution

by:gladxml
gladxml earned 100 total points
ID: 12345668
This is an idea I ma not sure if this will work but you can the name of the page and assuming that your timeout is an include file you can try this...

<%
if request.servervariables("SCRIPT_NAME") = "nameofthepage.asp"
Session.Timeout = 45 '45 minutes before session timeout
end if
%>

This way you can just make an if statement to still preserved the other timeout of other pages...

HTH...

HAppy programming...
0
 
LVL 15

Expert Comment

by:gladxml
ID: 12345672
This is an idea I am not sure if this will work but you can get the name of the page using servervariables and assuming that your timeout is an include file you can try this...

<%
if request.servervariables("SCRIPT_NAME") = "nameofthepage.asp"
Session.Timeout = 45 '45 minutes before session timeout
end if
%>

This way you can just make an if statement to still preserved the other timeout of other pages...

HTH...

HAppy programming...
0
 
LVL 13

Accepted Solution

by:
nurbek earned 200 total points
ID: 12345718
while uploading a file script is executed and you need to keep the Server.ScriptTimeOut longer

Session.TimeOut and Server.ScriptTimeout two different things

It doesnt matter if you increase  the Session.Timeout it gives scripttimeout error
if the executing script exceeds the scripttimeout time

You can chage the Server.ScriptTimeout after uploading the file
0
 
LVL 6

Assisted Solution

by:masirof
masirof earned 200 total points
ID: 12345762
As nubek mentioned (filyat :D ) ,

Server.ScriptTimeout = 60 (numeric value in seconds)

This will change timeout seconds for that page only!
0
 
LVL 26

Author Comment

by:Hilaire
ID: 12345930
Increasing points to split ...
Thks to all contributors
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Highlight Search Results in Classic ASP without searching HTML 5 55
Prevent site to open without the www. 9 61
asp syntax 3 37
Pass through dll 2 62
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now