Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
piyush liferay
How to Manage Session in liferay ??
24. Januar 2013 21:42
Antwort

piyush liferay

Rang: Junior Member

Nachrichten: 40

Eintrittsdatum: 1. Januar 2013

Neue Beiträge

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. Januar 2013 22:58
Antwort

Subhash Pavuskar

Rang: Regular Member

Nachrichten: 234

Eintrittsdatum: 12. März 2012

Neue Beiträge

Hi,

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

piyush liferay

Rang: Junior Member

Nachrichten: 40

Eintrittsdatum: 1. Januar 2013

Neue Beiträge

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. Januar 2013 06:14
Antwort

Apoorva Prakash

Rang: Liferay Master

Nachrichten: 659

Eintrittsdatum: 15. Juni 2010

Neue Beiträge

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