12/11/2013

Coldfusion: How to view all variables: local, URL, Post and others?

I'm taking over a new project, and have to learn Coldfusion ASAP.

One of the first things I wanted to know, for testing purposes, is:

How can I see all the variable names that have been stored or have been sent to the program I'm working on?

Answer: Use the cfdump command.

Examples of different types of variables from the scopes.

Local Variables
<cfdump var="#VARIABLES#">

URL / Query String
<cfdump var="#URL#">

FORM / Post
<cfdump var="#FORM#">

Session
<cfdump var="#SESSION#">

Application
<cfdump var="#APPLICATION#">

Cookies
<cfdump var="#COOKIE#">

3 comments :

  1. Are you looking for Web Application Development in India? Kanhasoft is providing Web Application Development services globally to boost your business. Get custom web application solution with professionals.

    ReplyDelete
  2. Wonderful post and I like your Post, as we know That blogging is not easy and which is dependent on your quality content and your topics to make much better. we should keep remembering about.web application development process

    ReplyDelete
  3. I’m going to read this. I’ll be sure to come back. thanks for sharing. and also This article gives the light in which we can observe the reality. this is very nice one and gives indepth information. thanks for this nice article... best locksmith

    ReplyDelete