At 10:15 AM 01/31/2002 -0500, you wrote:
>They are not global in the sense of application or server variables - in
>fact, I wouldn't use the word global at all. A request variable will
>exist for the entire request. So, if you set request.foo in
>Application.cfm, the template you called will have access to
>request.foo, as will any custom tag called. onRequestEnd.cfm will also
>have access to the variable.

  They are global to the request, the same way that application or server 
variables are.  Unlike application / server variables, they are not, 
persistent among separate requests.

  They are Global, but not persistent.  I view each ColdFusion template as 
its own program.

  I don't see much use beyond "A way to avoid sending parameters to custom 
tags."  Unless I'm mistaken the only difference between the variables scope 
and the request scope is that variables in the request scope are  available 
to custom tags.


>Request variables are NOT global at all. If I set request.foo to
>randrange(1,100), I will get a different request.foo variable then you
>will (most likely ;).

   You mean you will get a different request.foo variable for each request, 
correct?  The value is not going to randomly change with each access?  If 
it's the second scenario (not the first) then I am grossly misunderstanding 
the scope.
  If I were to set application.foo to randrange(1,100) I would also get a 
different value on every page request.  In most situations (I'm sure you 
already know this) we try to avoid setting an application variable on each 
page request.

  I'm going to shut up now.


--
Jeffry Houser | mailto:[EMAIL PROTECTED]
AIM: Reboog711  | ICQ: 5246969 | Fax / Phone: 860-223-7946
--
Need a Web Developer?  Contact me!
My Book: Instant ColdFusion 5  | http://www.instantcoldfusion.com
My New Book: ColdFusion: A Beginner's Guide February 2002
--
Far Cry Fly, Alternative Folk Rock
http://www.farcryfly.com | http://www.mp3.com/FarCryFly
______________________________________________________________________
Why Share?
  Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to