> I have seen a few references to the REQUEST scope by many on 
> this list. Is this a standard scope that is available to all 
> CF pages? What is stored in this structure? Is there any 
> information on it in the CF documentation? When does it get 
> built?

The Request scope is available to all scripts that are used within a single
response to a single HTTP request, whether those scripts are called directly
via the URL, or with CFINCLUDE or as custom tags. This scope was introduced
in CF 4.x. By default, nothing is stored in this scope unless you put it
there.

As for whether it's described in the documentation, I suspect that it's
mentioned at least.

There are at least a couple good uses for this scope. One is with deeply
nested custom tags. The Request scope will be available to all custom tags
within a page, no matter how deeply nested they are.

Another good use for the Request scope is for constants. Typically, people
use Application variables for things like datasource names and other
constants which don't change over the life of the application. Request
variables provide an alternative - and you don't have to worry about CFLOCK
with them. On the other hand, you'd need to create them again for each page
request, so you'd just plonk them down in application.cfm, typically.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]

Reply via email to