Foros de discusión
Force logout in autologin hook/portlet
Helmut Steiner, modificado hace 8 años.
Force logout in autologin hook/portlet
New Member Mensajes: 2 Fecha de incorporación: 11/03/16 Mensajes recientes
Liferay does not log the currently logged in user if you try to login again, and in fact even keeps the currently logged in user logged in.
For that i wanted to do it programmatically.
I tried it this way but with no success:
I was wondering if anyone has any other idea how to force a logout.
Thanks a lot.
For that i wanted to do it programmatically.
I tried it this way but with no success:
request.getSession().invalidate();
I was wondering if anyone has any other idea how to force a logout.
Thanks a lot.
Bijan Vakili, modificado hace 8 años.
RE: Force logout in autologin hook/portlet
Expert Mensajes: 375 Fecha de incorporación: 10/03/09 Mensajes recientes
Hello Helmut Steiner,
Thanks for posting.
Note this issue has been addressed before:
http://stackoverflow.com/questions/4470130/liferay-how-to-first-force-logout-in-autologin-hook
To quote from the author from answer post:
So it's worth asking what is the "Auto"? Is this a custom Auto Login class? Or is it some cookie-based login class? If it's cookie based, clear the cookies?
Thanks for posting.
Note this issue has been addressed before:
http://stackoverflow.com/questions/4470130/liferay-how-to-first-force-logout-in-autologin-hook
To quote from the author from answer post:
David O Meara:
session.invalidate() only works if authentication is managed by the application server session, which it is not ;)
So it's worth asking what is the "Auto"? Is this a custom Auto Login class? Or is it some cookie-based login class? If it's cookie based, clear the cookies?