Home
How To Manual
 
Links Imagemap services application FAQ

Application & Session Variable Lifespans
Client Variable Storage

Application & Session Variables Lifespans
Because the ColdFusion server keeps all application and session variables stored in memory for the duration of their lifespan, the server is set up such that application and session variables have very short life spans. Specifically, application variables expire after a 1 hour of inactivity and session variables expire after 30 minutes of inactivity. These short lifespans have been put into place in order to avoid wasting system resources.

If your application requires longer periods of inactivity you can define longer lifespans in your Application.cfm file. These longer lifespans cannot exceed the Maximum Timeouts as defined by the ColdFusion System Admin. Maximum timeouts are 1 day for application variables and 4 hours for session variables. If you define longer timeouts in your Application.cfm file, they will be ignored and the maximum timeouts will be used instead. A sample Application.cfm file that illustrates how to define session and application variable timeouts appears below:

<cfapplication name="App" (Replace App with your application's name)
clientmanagement="Yes"
sessionmanagement="Yes"
setclientcookies="No"
sessiontimeout="#CreateTimeSpan (0,0,30,0)#"
applicationtimeout="#CreateTimeSpan (1,0,0,0)#"
clientstorage="Put your datasource name here">

Note: Syntax - CreateTimeSpan (Days, Hours, Minutes, Seconds)

 
<cfset application.ds ="Put your datasource name here">

Client Variable Storage
Client variables are stored by default in a database controled by the ColdFusion System Admin. Client variables are purged after one day of inactivity. If you wish to exert greater control over the lifespan of client variables used in your application you can request that your datasoure be enabled for client variable storage. Only those individuals primarily responsible for thier site can make this request. To make the request simply send an email to webhostingadmin@umd.edu that indentifies:

  • Site making the request
  • Datasource name for the site.
  • How often (in days) to purge client variables

 

Links Imagemap services application FAQ
University of Maryland Maintained by theOffice of Information Technology
Please direct comments to webhostingadmin@umd.edu
Last modified Tuesday, 14-Dec-2004 12:14:48 EST

Office of Information Technology