Regarding AEM 6.1 User Logout Code | Community
Skip to main content
Dec 21, 2015 4:31 PM UTC
Solved

Regarding AEM 6.1 User Logout Code

I have created user in AEM that user credential through successfully login in out of box login component login form. All coding done in JSP/JavaScript 

I want user logout functionality coding. Please share user logout code in JSP/JavaScript.

 

Thanks in Advance 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Employee
Dec 21, 2015 8:10 PM UTC

Hi,

You can just drop the "login-token" cookie.

Jörg

5 replies

joerghoh
Employee
May 7, 2018 9:14 PM UTC

You might try the approach outlined here: How do you remove a Cookie in a Java Servlet - Stack Overflow

Jörg

Translate
nikitat62003829
New Participant
May 7, 2018 12:05 PM UTC

How to drop the login token cookie?

Could you please elaborate.

Translate
nikitat62003829
New Participant
May 7, 2018 12:05 PM UTC

how to drop the login token cookie?

Translate
schmid
New Participant
Mar 17, 2016 6:05 PM UTC

The login cookie is HTTPONLY which means it can't be deleted by Javascript. Any other ideas?

Translate
joerghoh
joerghohAccepted solution
Employee
Dec 21, 2015 8:10 PM UTC

Hi,

You can just drop the "login-token" cookie.

Jörg

Translate