Application Initialisation
In order to initialise a Speck application, you need to call the cf_spApp tag. This tag should be placed in your Application.cfm in the www directory for your application, e.g. c:\inetpub\webapps\myapp\www\.
The cf_spApp tag is like a version of the cfapplication CFML tag, specifically for Speck applications. It even calls the cfapplication tag to create a ColdFusion application for each Speck application. Although there are only two attributes for the cf_spApp tag, you can tell Speck to pass values for cfapplication attributes like sessionManagement, sessionTimeout, setDomainCookies using the application configuration file. More on that later.
Note that when cf_spApp initialises an application, it reads configuration information from files and then stores this information in memory for future use. The configuration information is not re-read until the application times out, or you force an application refresh using the refresh attribute. If you modify your application configuration in any way, you should refresh the application using the refresh attribute.
The following table list the attributes of the cf_spApp tag:
| Attribute | Type | Required | Description |
|---|---|---|---|
| Name | String | Yes | Application name. There must be a matching application configuration settings file. |
| Refresh | Boolean | No | Refresh all settings for this application (i.e. re-read the various configuration files for this application). Default "No". |