Viewing Individual Entry / Main
  ::   May 14, 2003

Extending Page Timeouts in ColdFusion MX
In versions of ColdFusion prior to MX, you could override the default amount of time (if set) the ColdFusion server allowed a page to process before timing it out by appending ?requesttimeout=123 to the end of the URL for the page request. The value passed for requesttimeout indicated the number of seconds before the request should time out.

ColdFusion MX no longer supports this method for overriding the page timeout. In ColdFusion MX, the way to override the default timeout set in the ColdFusion Administrator is to use the new requesttimeout attribute of the the cfsetting tag. Because it may not be convenient to put cfsetting tags in each page you may need to override the timeout for, or you may not want to go back and change existing code you may have already written, there is a workaround.

Add the following code snippet to the Application.cfm page for your application:


  

It checks on each page request for a URL parameter called requestttimeout. If it exists and contains a numeric value, it writes an appropriate cfsetting tag.



Calendar
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            

Recommended Reading
Prisoner without a Name, Cell without a Number

Archives by Subject
Announcements (28)
ColdFusion (61)
Database (12)
Dreamweaver (1)
Flash (2)
Flash Remoting (2)
Flex (3)
General Development (2)
Homesite + (1)
Mach-II (3)
MAX (9)
Mozilla (2)
Music (1)
Politics (1)
Portals (2)
Travel (2)

Search

Links
CFLib.org
Raymond Camden's Blog
Christian Cantrell's Blog
Sean Corfield's Blog
Nathan Dintenfass' Blog
Todd Rafferty's Blog
Steve Rittler's Blog
Cameron Childress's Blog

Credits
Based on blog.cfc by Raymond Camden

XML Feed