Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to set timeout parameter for a specific cfm file

Status
Not open for further replies.

xzhang

Programmer
Jun 7, 2001
9
US
Hi,

I am writting a cfm page which queries data from informix databse and it takes a couple of seconds up to dozens of minutes dependent on input argments for the query.

From coldfusion admin page, we set up the timeout request as 30 seconds.

However, I like to know whether there is a function/mechanism, which allows a cfm page rather than all cfm pages with a timeout request/parameter.
 
Hey xzhang,

Just append a "requestTimeout" parameter to the end of your script like this:


This will override the default in the CF admin. I don't believe there is any other way to pass this in except with a url variable. I suspect this has to do with CF needing to know the timeout before starting the script. Setting this inside the script or with form variables would probably preclude CF from getting them in time.

Hope this helps,
GJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top