Regarding AEM 6.1 User Logout Code | Community
Skip to main content
December 21, 2015
Solved

Regarding AEM 6.1 User Logout Code

  • December 21, 2015
  • 5 replies
  • 2045 views

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.
Best answer by joerghoh

Hi,

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

Jörg

5 replies

joerghoh
Employee
May 7, 2018

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

Jörg

nikitat62003829
New Participant
May 7, 2018

How to drop the login token cookie?

Could you please elaborate.

nikitat62003829
New Participant
May 7, 2018

how to drop the login token cookie?

schmid
New Participant
March 17, 2016

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

joerghoh
joerghohAccepted solution
Employee
December 21, 2015

Hi,

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

Jörg