Memory Variables page

You use the Memory Variables page of the ColdFusion MX Administrator to enable application and session variables server-wide. By default, application and session variables are enabled when you install ColdFusion MX. If you disable either type of variable in the Memory Variables page, you cannot use them in a ColdFusion application.

You can specify maximum and default timeout values for session and application variables. Unless you define a timeout value in an Application.cfc or Application.cfm file, application variables expire in two days. Session variables expire when user sessions end. To change these behaviors, enter new default and maximum timeout values on the Memory Variables page of the Administrator.

Note: Timeout values that you specify for application variables override the timeout values set in the Application.cfc or Application.cfm file.

You can also specify whether to use J2EE session variables. When you enable the J2EE session variables, ColdFusion creates an identifier for each session and does not use the CFToken or CFID cookie value. For more information, see ColdFusion MX Developer’s Guide.

Note: When using J2EE sessions, ensure that the session timeout, specified in the WEB-INF/web.xml session-timeout element is longer than the session timeout that you specify in the ColdFusion MX Administrator and longer than any sessiontimeout attribute specified in a cfapplication tag.