Obtaining the Actual File Path
Need the actual path to the CFM file being executed? Inspect the CGI.PATH_TRANSLATED variable which will contain the actual path after any logicial mappings have been processed. (Applies to: ColdFusion MX)
Need the actual path to the CFM file being executed? Inspect the CGI.PATH_TRANSLATED variable which will contain the actual path after any logicial mappings have been processed. (Applies to: ColdFusion MX)
Using Search Engine Friendly URLs (hiding the query string within text appended to the path)? This is a popular technique, and one that breaks when ColdFusion MX is installed. The solution is actually quite simple. Modify web.xml (it's in the web-inf directory under the web root) to add the...
ColdFusion Component arguments are Web Service arguments. Simple, right? Not exactly, there is an important difference. CFCs can have optional arguments (set REQUIRED="no"), but those same arguments will actually be required when the CFC is accessed as a Web Service. If you really do need optional...
To implement cookieless security (suitable for single requests only) use with a tag. (Applies to: ColdFusion MX)
Rather than create your own login form you can force the browser to display a login prompt. To do this set and set (naming the REALM). (Applies to: ColdFusion MX)
Need to restrict access by client domain? Use the COOKIEDOMAIN attribute to specify the domain (or sub-domain) granted access. (Applies to: ColdFusion MX)
The default login timeout using the security framework is 30 minutes (1800 seconds). This value may be changed by passing a value (in seconds) to the IDLETIMEOUT attribute. (Applies to: ColdFusion MX)
Need to force a logout before the timeout? Use the tag so that on the next request a login will be forced. (Applies to: ColdFusion MX)
ColdFusion can return HTTP status code 500 when an error occurs, but don't use this option on development machines (or if you ever want to see the actual error message text). The "Enable HTTP status codes" option is on the Settings page in the ColdFusion Administrator. (Applies to: ColdFusion MX)
Creating Web Services using ColdFusion CFC's? Great, until you try to update the definition of an existing Web Service (something you should not do too often). If ColdFusion throws errors that don't seem to make sense, you might need to remove the Web Service from the Active ColdFusion Web Services...