Skip to main content
Participant
April 8, 2011
Answered

Server Timeout

  • April 8, 2011
  • 2 replies
  • 1165 views

We are running our college website on ColdFusion 9.0. We wrote a ColdFusion program that takes user submissions on a form and submits them to a database as well as sending them by Email.

People are running into a problem where if they take too long to submit a form, then it times out and they lose all their input.

The business owners want to know how long this timeout period is so that they can adequately inform their audience.

Honestly, I don't know if this is controlled by ColdFusion, IIS, or a combination of both, but obviously there is a timeout setting somewhere that can be changed. Can somebody point me in the right direction so that I can inform people how long they have to fill out a form?

Thanks!

    This topic has been closed for replies.
    Correct answer ilssac

    ColdFusion has defaults set for session and application timeouts configure on the ColdFusion administrator -> Server Settings -> Memory Variables page.

    Out of the box, sessions are defaulted to 20 minutes and applications to 2 hours.

    You can customize these values in your code as will.  The applicationTimeOut and sessionTimeOut values can be set with either a <cfapplicaiton....> tag OR 'this' property values in an Application.cfc file.  Subject to the maximum allowed time for these properties configured on the above mentioned Memory Variables page.

    2 replies

    Participating Frequently
    April 9, 2011

    Instead of increasing the timeout for the whole application, I will recommend to increase the timeout for the "Add User" page programatically. I remember in one of my project my client want me to have a PDF form of around 100 fields. Obviously this will take much time to complete by the end user. So in that case what I did, instead of increase the timeout globally I just increased the timeout for the same page.

    djsavlonAuthor
    Participant
    April 11, 2011

    Amiya,

    Thanks for your reply. When you say that you increased the timeout for the same page, did you use the CFAPPLICATION tag to do that? Or some other method?

    Participating Frequently
    April 12, 2011

    The session timeut occurs when the user is idle for the specified amount of time that me ans no server request by the user for the specified amout of time. In this scenario you just need to have a javascript code which will do an asynchronous call to the server(may be some dummy page) in some certain time periods. The page which will be called may not have CFAPPLICATION tag. Not required actually.

    ilssac
    ilssacCorrect answer
    Inspiring
    April 8, 2011

    ColdFusion has defaults set for session and application timeouts configure on the ColdFusion administrator -> Server Settings -> Memory Variables page.

    Out of the box, sessions are defaulted to 20 minutes and applications to 2 hours.

    You can customize these values in your code as will.  The applicationTimeOut and sessionTimeOut values can be set with either a <cfapplicaiton....> tag OR 'this' property values in an Application.cfc file.  Subject to the maximum allowed time for these properties configured on the above mentioned Memory Variables page.