Fórum

How to Manage Session in liferay ??

piyush liferay, modificado 11 Anos atrás.

How to Manage Session in liferay ??

Junior Member Postagens: 40 Data de Entrada: 02/01/13 Postagens Recentes
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 ....
thumbnail
Subhash Pavuskar, modificado 11 Anos atrás.

RE: How to Manage Session in liferay ??

Regular Member Postagens: 234 Data de Entrada: 13/03/12 Postagens Recentes
Hi,

Pls refer this link !! hope it may help you Click here
piyush liferay, modificado 11 Anos atrás.

RE: How to Manage Session in liferay ??

Junior Member Postagens: 40 Data de Entrada: 02/01/13 Postagens Recentes
but in this example doesn't show , how to destroy a session when logout from the page....
thumbnail
Apoorva Prakash, modificado 11 Anos atrás.

RE: How to Manage Session in liferay ??

Liferay Master Postagens: 658 Data de Entrada: 15/06/10 Postagens Recentes
piyush 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