You know it right.

There can only be one request.myvar anywhere in the application. All users
use the same variable. 
If 
cfset request.myvar="Hal", 
then all users will see it as "Hal". 
If one user changes it:
cfset request.myvar=#client.userid#
then all other users will not see the change, because it is specific to that
request. Also to note - there is no storage for request variables. URL vars
are stored (sorta) on the URL string, form vars come from forms and can be
"stored" in a form field, application vars are stored in memory, and timeout
after the timeout value is reached in the cfadmin, session vars are stored
in memory, client vars in db or registry, and server vars in, well,
somewhere.

Request vars cannot be "saved" from one request, user, browser, or session
to the next. They can be accessed by all users, sessions, browsers, and
requests. They are not unique and specific to any user, session, or browser,
but are unique to each request, during that page request. They do not need
to be locked for reading or writing because they are unique to that specific
request.

I hope this is clear. Glossys might be a good idea, though.

Nat Papovich
ICQ 32676414
"If it was hard to write," 
says the Real Programmer,
"it should be hard to understand."


-----Original Message-----
From: David Huyck [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 10, 2000 3:57 PM
To: Fusebox
Subject: Re: Idea?


Doh!!  My brain feels like a ping-pong ball.  So what is it? a) I can mess
up another user's experience by hitting the same page as them, or b) only my
request can be messed up if I change something during my own request.  I
thought it was the way Chris just said it, but is Hal's explanation just
vague enough to confuse me?

Thanks...
David Huyck
[EMAIL PROTECTED]

> Oh, come on, Hal, that is really misleading.  Sure, the ability to use the
request scope is available to all users (regardless of whether client or
session management is being used), but that does NOT mean that, if you and i
hit the same page at the same time, my request-scope variables will ever be
confused with yours.
>
> Request-scope variables live only as long as a single HTTP request, and
belong only to that single HTTP request.
>
> At 5:44 PM -0400 10/10/00, Hal Helms wrote:
> >No, request is not tied to a specific user. If you doubt this, change
your
> >cfid or cftoken.


----------------------------------------------------------------------------
--
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to