Skip to main content
Inspiring
December 4, 2007
Answered

getting the cf admin timeout setting

  • December 4, 2007
  • 1 reply
  • 947 views
Hi. Is there a way to get the server timeout value set in cfadmin? I know how to override it by using cfsetting, but after overriding it, i want to revert to the value that was set in the cf admin. How do we get that value?
    This topic has been closed for replies.
    Correct answer BKBK
    You surely mean the request (not server) timeout value. I don't see any reason why you would want to override it. Its effect lasts for just one page, the one containing the cfsetting tag. In any case, here is a way to get the value in CF admin:

    <cfscript>
    runtimeMonitor = createObject("java", "coldfusion.runtime.RequestMonitor");
    writeoutput("request timeout value in CF admin: " & runtimeMonitor.getRequestTimeout());
    </cfscript>

    1 reply

    BKBK
    Community Expert
    BKBKCommunity ExpertCorrect answer
    Community Expert
    December 4, 2007
    You surely mean the request (not server) timeout value. I don't see any reason why you would want to override it. Its effect lasts for just one page, the one containing the cfsetting tag. In any case, here is a way to get the value in CF admin:

    <cfscript>
    runtimeMonitor = createObject("java", "coldfusion.runtime.RequestMonitor");
    writeoutput("request timeout value in CF admin: " & runtimeMonitor.getRequestTimeout());
    </cfscript>

    dongzkyAuthor
    Inspiring
    December 4, 2007
    Thanks. I am actually trying to set in one page, similar to this link: Performing Disaster Recovery After A ColdFusion Page Timeout Exception

    however, i wanted to get the remaining time left based on the cf admin setting. thanks for the help.