Solved

Set bigger timeout for a specific ASP page

Posted on 2004-10-19
5
3,340 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

636 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