ColdFusion Articles

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.

19 Current Sessions; Time: 23:55:51 21-11-2008; Tick: 485