How to get the login-token created by cq into the component jsp
How to get the login-token created by cq into the component jsp.
[img]session.PNG[/img]
How to get the login-token created by cq into the component jsp.
[img]session.PNG[/img]
Hmmm. The JCR Session interface doesn't define an invalidate() method, so I'm not sure exactly what you're referring to.
If you want to programmatically log out a user from a JSP, you should do this:
sling.getService(org.apache.sling.api.auth.Authenticator.class).logout(request, response);
See http://dev.day.com/docs/en/cq/current/javadoc/org/apache/sling/api/auth/Authenticator.html for more information.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.