Solved

Set bigger timeout for a specific ASP page

Posted on 2004-10-19
5
3,339 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Syntax for query to update table 2 56
PHP encrypted string and passing to a ASP Page 12 88
JS to redirect to prev page 8 47
GitHub 1 41
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…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

751 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