Hi all,

I think I have made some progress with my problem and just have a much 
more basic question.  :-)

What is a global variable in Mason?  Are global variables accessible by 
all components in a request, all requests from a single user (this one 
doesn't make sense), or global for all users?

Say user 1 accesses index.html that sets the global variable x to 
"100".  If user 2 accesses index.html and reads x, will she get "100" also?

Even worse, if User 1 sets the value to "100" upon reading index.html 
and user 2 sets it to "200", if user 1 goes to next.html, is it foolish 
to rely on the fact that x must be "100"?

In the Mason Book, they seemed to have used user names and DB access 
($User and $Schema) as a global, but they "limit their lifetime via the 
use of local()".  In the context of Mason, what does local have the 
effect of doing?

Thank you!

Ray


Raymond Wan wrote:
> I'm confused about something which I thought recent discussions on data 
> sharing among components might be relevant...but I guess not.
>
> I am storing a cookie in the browser.  An $id variable that I calculate 
> and send to the user.  It was going to be "password-like" in one of my 
> e-mails months ago, but not anymore.  So, I don't mind if the user tries 
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to