[jboss-user] [JBoss Seam] - Identity.loggedIn and Session expiring

b.reeve do-not-reply at jboss.com
Tue Dec 11 18:25:52 EST 2007


Hello !


  | 1. Is there a way we can map identity.loggedIn to a method to keep checking against some criteria. For eg: If I want to redirect the user to login page when the session expires, can I configure identity.loggedIn = loginBean.sessionExpired.
  | 
  | 2. Or, I found in the forum that an event can be raised for sessionExpired. But then how do I redirect the user to myLogin page on this event. 
  | 
  |   | <event type="org.jboss.seam.sessionExpired">
  |   |        <action execute="#{redirect.toSomeViewID}"/>
  |   |   </event>
  |   | 
  | 
  | 3. Also if I do 
  | 
  |   | <page view-id="*" action="#{loginBean.sessionExpired}">
  |   |    <navigation>
  |   |       <rule if="login">
  |   |           <redirect view-id="/index.xhtml" />
  |   |       </rule>
  |   |    </navigation>
  |   | </page>
  |   | 
  | what happens when sessionExpired method returns null
  | 
  | Any help would be appreciated.
  | 
  | Thanks !

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112115#4112115

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112115



More information about the jboss-user mailing list