Well after the user logs in the first time, that means he is authenticated. So 
no need to log him again. What I do is:
 
1) the login component should call a remote function to load user data (this 
should be the first thing it does):
 
myRO.getUserInfo( username );
 
2) if this fails, means the user is not authenticated, so then show him the 
login screen.
 
3) and then of course once he provides his credentials do:
 
myRo.setCredentials( username, password );
 
Dimitrios Gianninas
Developer
Optimal Payments Inc.
 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of 
paromitadey
Sent: Monday, March 12, 2007 6:04 AM
To: [email protected]
Subject: [flexcoders] How to handle the F5 browser refresh for a Flex 
application



Hi All,

This may be a very silly question, but I am stuck on this and can not 
find a suitable solution, please advise.

I have an application where the first screen is a login screen, when 
a user logs in he is redirected to a diferent view based on the users 
login permissions etc. The problem is whenever we hit the F5 browser 
button the wrapper file is refreshed and the embeddd swf (flex app) 
is reloaded reinitializing all the application variables etc. This 
takes the screen view back to the default login screen although the 
user is logged and all values are lost.
How can I handle this? 
I tried using shared objects but this would meen storing every value 
in shared object. Is there any easier way out? Any configuration 
change etc. Do we need to disable the F5 key press using javascript 
etc. ?

Please advise.

Regards,
Paromita



 

-- 
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.

Reply via email to