3 Replies Latest reply on Jul 25, 2007 1:07 PM by shane.bryzak

    identity.logout from javascript

    msduk

      Hi is there any way I can call indentity.logout from javascript?

        • 1. Re: identity.logout from javascript
          msduk

          I was trying this as a servlet but any attempts to reference Identity from inside the doGet results in

          java.lang.IllegalStateException: No active session context

          • 2. Re: identity.logout from javascript
            msduk

            I think my url-pattern is incorrect in my components.xml can anyone tell me what it should be.

            <servlet-mapping>
            <servlet-name>logout</servlet-name>
            <url-pattern>/logout</url-pattern>
            </servlet-mapping>

            <web:context-filter url-pattern="/logout/*" />

            I think I have tried most combinations now...

            • 3. Re: identity.logout from javascript
              shane.bryzak

              The easiest way to do this would be with a Seam Remoting call. Something like this should work:

              Seam.Remoting.eval("#{identity.logout}");