ColdFusion Articles

Variables in CFML: A Comprehensive Guide

Although dated now the information in this guide is still useful - the basics rarely change.

Simplify Searching with Multiple File Extensions

ColdFusion doesn't enforce a separation of code and content and that may cause some problems with searching. This is one idea to alleviate some of those problems.

Get Client Resolution Data

For compatible clients this system will allow you access to screen color depth and screen resolution. The data can then be used to customize display of data or for planning purposes.

Weighting Random Selections

An exercise in weighting an otherwise random return. Answers problems like "Return one of the following, but have this value twice as common as other values".

Make Session Variables Truly Session Variables

The CFToken and CFID cookies that identify ColdFusion sessions are, often annoyingly, set as persistent cookies. Here's some simple code allowing you to still use cookies as session identifiers and force them to die with the browser session.

785 Current Sessions; Time: 04:24:29 11-03-2010; Tick: 62