1 Reply Latest reply on Jul 12, 2010 10:40 PM by herberson

    How to kept alive session for Login or home page

    maruthyshetty

      Hi all,


      here is my requirement, i need session timeout for all the pages mentioned in web.xml
      except Login page or home page. please send me the solution.




      Thanks in advance


      Maruthy

        • 1. Re: How to kept alive session for Login or home page
          herberson

          Define, in pages.xml file, that the user login is required for the pages where you need session timeout.


          For example:


          <page view-id="/application/*" login-required="true"/>
          



          In this case all pages under [context path]/application/ had a timeout and redirect to login page when that occours.


          Remember, on <pages /> tag (one of firsts lines of pages.xml file) you must have declarated the login page as I show below:


          <pages xmlns="http://jboss.com/products/seam/pages" 
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.2.xsd"
               no-conversation-view-id="/home.xhtml" login-view-id="/login.xhtml">
          



          Herberson