Category Archive for: Implementing the coldFusion Web Application Framework

Home.cfm

Home. cfm is a modified version of the template created in Chapters 1, 2, and 3. If you would like to know more about how to create the actual quiz, please refer to those chapters. In this chapter the quiz has been enhanced by using the application framework, and that is what the explanations will focus the new home.…

Read More →

Putting It All Together

This section will demonstrate all the application framework features that you have learned about in this chapter. A full application will be described in detail so that you can see how each of these features is supposed to be employed practically. This application is built on the same basic templates that Y?U originally created, “Creating Your First ColdFusion Template,”…

Read More →

Nesting CFLOCK Tags

It is important to understand the nesting process of CFLOCKtags while you are using them in your application. If you nest tags inconsistently, serious problems could occur that could cause your server to hang or crash. These problems are sometimes referred to as deadlocks. It is far better to avoid nesting if at all possible. When nesting your CFLOCKtags,…

Read More →

Using CFLOCK

One issue that has not been discussed in this chapter is that of simultaneous read and write access to certain variables with persistent scope. Session, application, and server variables are not protected from simultaneous read/write access. Therefore, you should always use the CFLOCK tag when reading and writing to these variable scopes. If these variables are not protected, or…

Read More →

Working with Application Variables

You are ready to start working with application variables once they have been enabled with the CFAPPLlCATIONtag. In this section you will learn how to create, refer to, retrieve, and delete application variables. Creating Application Variables Creating application variables is basically the same as creating session variables, except for the name prefix. Application variables must also be locked.…

Read More →

Using Application Variables

Application variables are associated with a single application and are accessible by multiple clients. Specifically, they are tied to the application name specified in the CFAPPLICATION tag. To enable application variables, you must add a CFAPPLlCATION tag with a NAMEattribute to your applcation. cfm template. Application variables, like session variables, also have a timeout period. The default timeout period…

Read More →

Working with Session Variables

If you have enabled SESSIOMANAGEMENTin your Application. cfm template, you are now ready to start creating and using session variables. Creating Session Variables Creating session variables is basically the same as creating client variables, except that session variables must also be locked. Whenever you read or write a session variable, you need to use the CFLOCK tag around…

Read More →

Exporting the Client Variable’s Registry Entry

If you use the registry to store client data, you may at some point need to move this data from one server to another. If this is the case, you can export the following registry key to a file: HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion\Clients You can move your registry key by following these steps: 1. Open the registry (RegEdit command). 2.…

Read More →

Deleting Client Variables

Although the CLI[NTSTORAGEattribute of the CFAPPLICATIONtag offers three types of storage options, cookies will be used no matter which option you specify (unless you have set the SETCLIENTCOOKIES attribute to No).Remember that the CFIO and CFTOKEN values are still stored as cookies on the client even if the storage option has been set to registry or the name of…

Read More →

Working with Client Variables

Now that you’ve enabled client management, you are ready to start creating and using client variables. Client variables are set and accessed in basically the same manner as standard variables. The difference, of course, is that client variables are persistent and can be referenced from any template within a ColdFusion application. Creating Client Variables To create a client…

Read More →

Back to Top