3 Replies Latest reply on Jun 4, 2010 8:31 AM by anitha.nagani.raj.gmail.com

    Logout handling

    kdcosta.mail.dcosta.gmail.com

      hi


      i am new to seam framework.
      we have an application done using seam framework.
      All our pages are in session scope.


      There is a logout button in all our pages.The logout is managed using identity.logout.


      So when a user clicks the logout from any page , he is directed to the login page.


      But the problem is that, when the browsers back button is clicked, user will get the page from where he logged out.And he can work also.I mean no security.


      Anyone know how to solve it???????


      plz help me.
      we are in great need.


      rgds

        • 1. Re: Logout handling
          nickarls

          Show your pages.xml. Do you have login-required etc?

          • 2. Re: Logout handling
            indusukumar

            Can you please share your code that u have done for logout of your application as i need to do kill all the sessions and redirect to the login page when logout button is clicked for my application

            • 3. Re: Logout handling
              anitha.nagani.raj.gmail.com
              Hi all,


              I have the same problem as mentioned above. Clicking on browser's back button after log out will take the user to the previously viewed page from where he logged out. Please help me in this issue as this is an emergency.

              my pages.xml is here:

              <?xml version="1.0" encoding="UTF-8"?>
              <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">

                  <page view-id="*">
                      <navigation>
                          <rule if-outcome="home">
                              <redirect view-id="/home.xhtml"/>
                          </rule>
                      </navigation>
                  </page>
              </pages>