RE: [flexcoders] Redirect to login page

2007-09-19 Thread Adolfo Ruiz
I have to make a request via Remote service to poll: if ( FlexContext.getHttpRequest().getSession().isNew() || FlexContext.getHttpRequest().getSession().getAttribute("user")==null ){ res = Const.EXPIRED; } Tracy Spratt <[EMAIL PROTECTED]> escribió: You could poll the s

RE: [flexcoders] Redirect to login page: from flex to jsp in struts

2007-09-19 Thread Dimitrios Gianninas
Hi, Basically what you want to do is that the user will do some sort of action and if you have flex using standard J2EE authentication then that remote call will fail and your fault method you can catch that specific exception and then redirect the user to the login page: if( evt.fault.fault

RE: [flexcoders] Redirect to login page

2007-09-19 Thread Dimitrios Gianninas
is your login page with the flex app or a seperate JSP/ASP/PHP page? Dimitrios Gianninas Development Team Lead Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manu Dhanda Sent: Tuesday, September 18, 2007 10:44 PM

RE: [flexcoders] Redirect to login page

2007-09-19 Thread Tracy Spratt
You could poll the server at intervals. When the session is gone, restart/reste the app, either programatically, or by calling NavigateToURL with target _self. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manu Dhanda Sent: Tue