1 Reply Latest reply on Feb 11, 2011 4:42 PM by amitev

    http session timout (viewexpired exception) and seam jsf controls

    seamluver

      hallo,


      to inform a user that his http session has expirecd you can easily redirect to a informational page via pages.xml and the viewexpirec exception.
      for ajax calls you can use the parameter org.ajax4jsf.handleViewExpiredOnClient to have the same behaviour.
      but what about the seam controls s:link and s:button they don't submit the form and also don't trigger the viewexpired exception instead they just redirect
      to the configured login.xhtml page.


      anyone know how I can make them trigger the viewexpired expcetion too ? so I have the same behaviour on all controls in my application.


      thanks,
      chris

        • 1. Re: http session timout (viewexpired exception) and seam jsf controls
          amitev

          s:button and s:link perform a GET request. When the session is expired and s:link/button is used it's the same as you just opened the application from a fresh browser. The only thing on my mind is to store  some token in the session and check for it with onpageload action/filter and redirect the user to some page if the token is not presented.