|
<CFAPPLICATION NAME="name
" CLIENTMANAGEMENT="Yes/No" SESSIONMANAGEMENT="Yes/No" SESSIONTIMEOUT=#CreateTimeSpan(days, hours,
minutes, seconds)# APPLICATIONTIMEOUT=#CreateTimeSpan(days, hours, minutes, seconds)#>
Defines scoping for a Cold Fusion application and enables or disables storing client variables in the system registry. By default, client variables are disabled. Also used to enable session variables and to set
timeouts for both session and application variables. Unlike client variables, session and application variables are stored in memory, not in the system registry.
Attributes
NAME |
The name you want to give your application. Required for application variables to work. Optional for client and session variables. |
CLIENTMANAGEMENT |
Optional. Yes or No. Controls whether or not to enable storing client variables in the system registry. Default is No. |
SESSIONMANAGEMENT |
Optional. Yes or No. Yes enables session variables. Default is No. |
SESSIONTIMEOUT |
Optional. Enter the CreateTimeSpan function and the values you want in days, hours, minutes, and seconds, separated by commas to specify the lifespan of any session variables that are set. The default
value is specified in the Cold Fusion Administrator, Server page. |
APPLICATIONTIMEOUT |
Optional. Enter the CreateTimeSpan function and the values you want in days, hours, minutes, and seconds, separated by commas to specify the lifespan of any application variables that are set. The
default value is specified in the Cold Fusion Administrator, Server page. |
Usage
CFAPPLICATION is typically used in the application.cfm file to set defaults for a specific Cold Fusion application.
CFAPPLICATION enables application variables unless they have been disabled in the Cold Fusion Administrator. Using the SESSIONMANAGEMENT attribute to enable session variables
is also overriden by the Administrator. See the Cold Fusion User Guide for information about the Cold Fusion Administrator.
Example
<CFAPPLICATION NAME="DataEntry" CLIENTMANAGEMENT="Yes" SESSIONMANAGEMENT="Yes" SESSIONTIMEOUT=#CreateTimeSpan(0, 1, 0, 0)# APPLICATIONTIMEOUT=#CreateTimeSpan(1, 0, 0, 0)#>
|
|