Tutorials

The following tutorials were originally part of my trajiklyhip.com Web site. The content is old, but still relevant in a lot of situations. Any new tutorials/articles I write are part of my blog, so be sure and check that for more up-to-date material.

ColdFusion MX 7 Login Security

Covering all of the same topics in the below CFMX 6 Login Security tutorial, this one covers new topics and features included in ColdFusion MX 7. It focuses on Application.cfc instead of Application.cfm and builds a similiar session-based login mechanism tied to a relational database. It ensures that users must log in to a Web site before they are allowed to view or access any ColdFusion templates. Additionally, if a users session times out, and they attempt to refresh the page they left in their browser - or any other page within the application - they will be redirected to the login template. The tutorial also outlines ColdFusion's built-in Hash() function (for securing passwords in the database), how to track the number of active sessions (application-wide), how to update the "last login date" each time a user logs in, and how to issue "smart redirects" when a user requests a certain application page but is not yet logged in.

View Tutorial

ColdFusion MX 6 Login Security

Some of the tutorials I've created have spawned from user demand. This one definitely falls into that category. I've responded to well over two dozen questions/inquiries regarding how to build a secure login. Finally, I decided to write up a tutorial and publish the information on my site. This tutorial features a session-based login procedure that is tied directly to a database. It ensures that users must log in to a Web site before they are allowed to view or access any ColdFusion templates. Additionally, if a users session times out, and they attempt to refresh the page they left in their browser - or any other page within the application - they will be redirected to the login template. The tutorial also outlines how to use ColdFusion's built-in Hash() function in order to encrypt passwords.

View Tutorial

Flash Remoting (Object Passing)

This tutorial focuses on passing objects created in ColdFusion to a FlashMX application. I'll create a CFC function that will assemble a structure of queries and return the structure. I'll also write a FlashMX function that will call the CFC function and parse the return object for display. If you are unsure how to pass a simple structure (or complex structure) from ColdFusion to Flash, and are not clear on how to parse the object in Flash, this tutorial is for you.

View Tutorial

ColdFusion, WDDX, and Flash

This tutorial is designed to illustrate the basic process of building dynamic Flash movies using ColdFusion, WDDX (Web Distributed Data Exchange), and an RDBMS (Relational Database Management System). During the tutorial, we'll build a sample application using Microsoft Access, ColdFusion, and Flash and in the end display database content in our Flash movie.

View Tutorial

Writing ColdFusion Using CFScript

ColdFusion Markup Language is a tag-based server-side language. However, there are actually two ways to write ColdFusion code. The most common form of ColdFusion is in the form of tags like HTML, however, there exists another way to write ColdFusion. Less common than writing your code in tags (start tag and an accompanying end tag) is using CFScript. CFScript, similiar to other ECMA-compliant languages such as JavaScript, was first introduced in ColdFusion 4.0 and is seen as a more advanced way of scripting ColdFusion.

View Tutorial

Serializing A Query Result-Set Into A WDDX Packet

There are many uses to the WDDX functionality in ColdFusion. To put it simply, using the CFWDDX tag developers can serialize and deserialize complex data structures into an XML-based format. For the purposes of this article we'll only look at the CFWDDX tag from the standpoint of creating WDDX packets.

View Tutorial

RSS