RE: [flexcoders] tracking a user session

2007-02-01 Thread Dimitrios Gianninas
When your user is authenticated in Flex, then retrieve his info and roles and 
store it in a global variable that u can use from anywhere in your app. For 
people using Cairngorm (and you might not) this will look like so:
 
ModelLocator.getInstance().user = someUserInstance;
 
Since the ModelLocator is a singleton you can access from anywhere in the app 
to display user info or check his/her roles to see if he/she has access to 
something or not.
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
mthielman11
Sent: Wednesday, January 31, 2007 1:54 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] tracking a user session



I am having a surprisingly very difficult time finding a concrete
answer as to how to handle sessions in flex. We need to be able to
track a user once they are logged into the system. Security in our
app is critical and every post needs to be validated. IN our current
web app we simply had a string added to the end of each url that
tracked the users session. What is the best way to handle this in
flex?? We need to know and track session validity, timeout, logout
and prvilages to modules and features. thanks. Our back end is
java/postgres.



 

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



Re: [flexcoders] tracking a user session

2007-01-31 Thread Jeffry Houser

  You don't need to track sessions in the same way that you would in 
Web Applications.

  Adding a string at the end of the URL to track sessions is 
fine.  All flex-based apps will most likely be served off the same 
URL, won't they?

  Just store your session variables as 'local' to the Flex instance, 
perhaps in an ActionScript class.  I'm sure there is a more elegant 
way to say this.



At 01:54 PM 1/31/2007, you wrote:

>I am having a surprisingly very difficult time finding a concrete
>answer as to how to handle sessions in flex. We need to be able to
>track a user once they are logged into the system. Security in our
>app is critical and every post needs to be validated. IN our current
>web app we simply had a string added to the end of each url that
>tracked the users session. What is the best way to handle this in
>flex?? We need to know and track session validity, timeout, logout
>and prvilages to modules and features. thanks. Our back end is
>java/postgres.



--
Jeffry Houser, Software Developer, Writer, Songwriter, Recording Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company: 
My Podcast: 
My Blog: 
Connecticut Macromedia User Group: