3 Replies Latest reply on Mar 27, 2009 10:12 AM by oguzyalcin.oguzhanyalcin.gazi.edu.tr

    logout from seam-gen

    ajanz
      i use the following link for logout generated by seam-gen

      <s:link view="/login.xhtml" action="#{identity.logout}" value="Logout" rendered="#{identity.loggedIn}" style="margin-right:20px;color:White;" />

      but when i then try to login i got

      "your session has expired"

      how can i correctly logout?
        • 1. Re: logout from seam-gen
          norman

          After logout, you can do a redirect to make sure a new session is started.

          • 2. Re: logout from seam-gen

            Yes, that is what I do, (and I guess that is what Sascha is going to have to do) but, Why? AFAIK Seam is the only web framework that seems to require this... I think this should be reported as a bug in JIRA... do you agree?

            • 3. Re: logout from seam-gen
              oguzyalcin.oguzhanyalcin.gazi.edu.tr

              When you click that link, your page redirects you to login.xhtml with param to trigger logout function and when you login at the page you first trigger login action then the param at the request(GET) says to trigger the logout function and ooops... You'd better add a redirect to login.xhtml (for clearing the request parameters)(without include-page-params). I think that is not a bug.