Ben Forta

Blog

May 1, 2001

Keeping ColdFusion Secure

Your Web Server may be secure today, but that does not mean it will be secure tomorrow. New holes and hacks are being discovered on a regular basis, and to maintain a secure ColdFusion site you need to ensure that all software (not just ColdFusion) is secure. This means that you must regularly...

April 30, 2001

Different Sessions in Each Open Browser

ColdFusion SESSION variables are usually shared by all open browsers because cookies are shared across all open browsers (and SESSION uses two cookies to identity the client browser). To establish a separate SESSION for each browser you need to not set cookies (this is a option), and instead pass...

April 29, 2001

Test Output in Multiple Browser Sizes

The ColdFusion Studio Browse mode is used to test pages right within your Studio Editor. But many developers are unaware that this internal browser can also test pages at different screen sizes (so as to simulate the user experience for as many users as possible). When in Browse mode, click the...

April 28, 2001

Generate Excel Spreadsheets

Want to generate Excel content using ColdFusion? Here's a really easy way to do it. Generate comma-delimited output (CSV format) with each cell as a field and each row on its own line. Then set the MIME type (using ) to "application/vnd.ms-excel". When the page is retrieved it will be displayed in...

April 27, 2001

Standardize Your Coding

CFML is case-insensitive - is the same as which is the same as , and FORM.var is the same as form.var which is the same as Form.VAR. But just because you can use any choice of case does not mean you should. Pick one, any one, and use it exclusively. Some developers like using upper-case for all...

April 26, 2001

Lock SESSION Variable Access

By now most ColdFusion developers know that access to shared variables must be locked, but many developers mistakenly think that SESSION variables need no locking if frames are not being used. The truth is, SESSION variables are usually accessed by a single thread at a time, but if users hit...

April 25, 2001

Pick Your Favorite Folder

If you are working on an application that uses several directories that you regularly need to access (code, images, Custom Tags, etc), then take a look at ColdFusion Studio's "Favorite Folders" feature which lets you jump to specific directories by selecting them from a popup list. To add a...

April 24, 2001

Debug Logs

is used to execute Java Servlets from within ColdFusion. features a DEBUG attribute which can be used to log debug information. If you use this feature remember that DEBUG logs to the JRun log files, not the ColdFusion log files. (Applies to: ColdFusion 4.5 (or later))

April 23, 2001

Is It An Index Or An Item?

Having a hard time remembering when to use INDEX and when to use ITEM in your loops? As you have probably discovered, these attributes are not interchangeable, you must use the right one for the loop being created. ITEM is only used when looping over a COLLECTION, other loops (index and list) use...

April 22, 2001

Resizing Arrays

The ArrayResize() function is used to change the size of an array, making it bigger or smaller. But if you are thinking that making an array smaller will free up memory, think again. While arrays may be shrunk, any memory they used will not be freed up until the variable (the array) ceases to...

Page 467 of 489 (4890 posts)