1 Reply Latest reply on Oct 14, 2009 5:13 PM by Dean Hiller

    login page does not work after session timeout?

    Dean Hiller Expert

      I asked this question before but can't find the post.


      1. go to login page
      2. let the session timeout
      3. login
      RESULT: get ViewExpiredException



      I was told on these forums that this is a JSF issue I can't work around BUT why does this work....


      1. go to a page with a listbox and add script button
      2. let the session timeout
      3. click add script
      4. prompts for login and I login
      5. redirects me to login script page
      there is NO viewExpiredException!!!



      Is there a way to make the login still work even though the view in JSF is gone.  My test page above with edit links, add links etc. etc. seems to work great!!!!


      thanks,
      Dean

        • 1. Re: login page does not work after session timeout?
          Dean Hiller Expert

          no one knows?


          Also, I restarted tomcat then clicked logout, ended up on login page of my app and logged in and got a


          Caused by java.lang.IllegalStateException with message: "Unable to read view /secure/client/scripter/admin/scripts.xhtml to execute action "#{identity.logout()}""



          any ideas how to prevent that as well?  I think that has something to do with the capture current view, login redirect to capture view but in this case logging out would have been weird weird right after having logged in confusing the user.....do we have to write a custom capture and redirect component to work around this issue?