Foros de discusión
How to Manage Session in liferay ??
piyush liferay, modificado hace 11 años.
How to Manage Session in liferay ??
Junior Member Mensajes: 40 Fecha de incorporación: 2/01/13 Mensajes recientes
Can anybody tell me about the session management in liferay..
i am working on login - logout functionality so i am required such functionality so suggest me ....
i am working on login - logout functionality so i am required such functionality so suggest me ....
Subhash Pavuskar, modificado hace 11 años.
RE: How to Manage Session in liferay ??
Regular Member Mensajes: 234 Fecha de incorporación: 13/03/12 Mensajes recientes
piyush liferay, modificado hace 11 años.
RE: How to Manage Session in liferay ??
Junior Member Mensajes: 40 Fecha de incorporación: 2/01/13 Mensajes recientes
but in this example doesn't show , how to destroy a session when logout from the page....
Apoorva Prakash, modificado hace 11 años.
RE: How to Manage Session in liferay ??
Liferay Master Mensajes: 658 Fecha de incorporación: 15/06/10 Mensajes recientespiyush liferay:
but in this example doesn't show , how to destroy a session when logout from the page....
Hi Piyush,
Basically, the following code is the key portion of logoutAction:
try {
session.invalidate();
}catch (Exception e) {
//ignored
}
Apart form this,3 cookies COMPANY_ID, ID and PASSWORD are also destroyed. You can see the exact Logout code here.
Hope This will help...
Thanks and Regards,
Apoorva Prakash