March 15, 2007

ColdFusion Function

If you are looking for a function like ifDefined for ColdFusion, you won't find it! Its not called IfDefined, its called isDefined. Here's an example code:
<cfif isDefined("Session.login") and EmptySession eq 0 >
  ...
<cfelse>
...
</cfif>

Incidently the above code is one way to reset a ColdFusion session. You should experiment to what works best in your enviroment!

Comments

Add your Comments

Feel free to leave a comment about this post.

- Feel Free to add HTML to your comment!