Ben Forta

Blog

March 27, 2001

Shhh, Don't Tell Them It's ColdFusion

Finding that mail sent via is not being accepted? The problem could be related to spam filters - because ColdFusion makes it so easy to send mail (even bulk mail) some spam filters block any mail that was generated by ColdFusion. How do they know that ColdFusion generated the message? By looking at...

March 26, 2001

Find All Form Fields

When a form is submitted to ColdFusion a variable named FORM.FieldNames will automatically be created containing the names of all the submitted form fields. The names are in a comma delimited list, so the List functions and can easily be used to manipulate and access them. But one thing to note -...

March 25, 2001

Deleting SESSION Variables

Ever needed to delete SESSION variables, even all SESSION variables? Even though there is no delete function (as there is for CLIENT variables), you can still do this. SESSION is a structure, and all standard structure functions can be used to manipulate a user's SESSION scope. StructDelete() can...

March 24, 2001

True, False, And …

When testing for TRUE or FALSE in ColdFusion, remember the following. Any non zero number (even negative numbers) will evaluate to TRUE, 0 evaluates to FALSE. YES evaluates to TRUE, NO evaluates to FALSE. Anything else (text, for example) will not evaluate to either TRUE or FALSE. (Applies to:...

March 23, 2001

Database Debug Settings - Without Using the Administrator

Trying to debug database query problems but don't have debug output turned on? You're in luck. You can simply add the DEBUG attribute to your and the debug output will be displayed at the bottom of the page regardless of ColdFusion Administrator settings. (Applies to: ColdFusion All)

March 22, 2001

When SESSION Variables Time Out Too Soon

ColdFusion SESSION variables time-out - this is part of their design, after a period of inactivity they disappear. The time-out interval is specified when SESSION state management is enabled - in the tag. But sometimes SESSION variables will time-out quicker than they are supposed to. Why is this?...

March 21, 2001

CALLER Scope and Nested Custom Tags

ColdFusion Custom Tags may be nested - that is, Custom Tags may call Custom Tags that may call Custom tags that may call … you get the picture. When nesting Custom Tags remember that the CALLER scope always refers to a Custom Tag's caller, not the top level page. If you need to pass data up...

March 20, 2001

Using Logical Paths

As a rule, applications should use relative paths wherever possible. Absolute paths can be problematic if files or directory locations change. If you need to refer to absolute paths (for example, in ), set up a logical path in the ColdFusion Administrator (the Mappings page) and use that in your...

March 19, 2001

CLIENT or SESSION?

ColdFusion supports two type of variables both of which facilitate the use of persistent data - CLIENT and SESSION. And although both are enabled using , and both use CFID and CFToken for client identification, they are actually very different. SESSION variables are stored in memory, CLIENT...

March 18, 2001

Cookieless Session Variables

ColdFusion SESSION variables use two cookies (CFID and CFTOKEN) to identity the client browser - all SESSION variables are stored on the server, but the two cookies are needed to know which set of variables belongs to whom. But what if you can't (or won't) use cookies? You can still use SESSION...

Page 470 of 489 (4885 posts)