Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
piyush liferay
How to Manage Session in liferay ??
24 de Janeiro de 2013 21:42
Resposta

piyush liferay

Ranking: Junior Member

Mensagens: 40

Data de entrada: 1 de Janeiro de 2013

Mensagens 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 ....
Subhash Pavuskar
RE: How to Manage Session in liferay ??
24 de Janeiro de 2013 22:58
Resposta

Subhash Pavuskar

Ranking: Regular Member

Mensagens: 234

Data de entrada: 12 de Março de 2012

Mensagens recentes

Hi,

Pls refer this link !! hope it may help you Click here
piyush liferay
RE: How to Manage Session in liferay ??
25 de Janeiro de 2013 03:41
Resposta

piyush liferay

Ranking: Junior Member

Mensagens: 40

Data de entrada: 1 de Janeiro de 2013

Mensagens recentes

but in this example doesn't show , how to destroy a session when logout from the page....
Apoorva Prakash
RE: How to Manage Session in liferay ??
25 de Janeiro de 2013 06:14
Resposta

Apoorva Prakash

Ranking: Liferay Master

Mensagens: 659

Data de entrada: 15 de Junho de 2010

Mensagens 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:

1try {
2    session.invalidate();
3}catch (Exception e) {
4    //ignored
5}


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