Are you talking about on the server or in
the flex app? In the Flex app you can set the variable on your main
application and everyone can access it via Application.application.yourVar. As
far as the server for RemoteObject session access check the docs for flashgateway.Gateway.getHttpRequest()
Matt
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of jaya_selva
Sent: Thursday, July 21, 2005
12:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Global
Variable or session Attribute
Hi,
I want to set a variable which can be accessed
from all the components
(Session scope) and can be modified from any
place.
I want to maintain whether the user is logged in ,
ie when the user
logs in I want to set the flag to true , and I
should be able to check
this flag from all my components in the
application.
I also need to set the Roles for the user in the
global session scope.
Is there any way to acces the session object and
set attribute in it
from my flex code.
Thank You,
Jay.
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
|
- RE: [flexcoders] Global Variable or session Attribute Matt Chotin
-