フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
piyush liferay
How to Manage Session in liferay ??
2013/01/24 21:42
答え

piyush liferay

ランク: Junior Member

投稿: 40

参加年月日: 2013/01/01

最近の投稿

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 ??
2013/01/24 22:58
答え

Subhash Pavuskar

ランク: Regular Member

投稿: 234

参加年月日: 2012/03/12

最近の投稿

Hi,

Pls refer this link !! hope it may help you Click here
piyush liferay
RE: How to Manage Session in liferay ??
2013/01/25 3:41
答え

piyush liferay

ランク: Junior Member

投稿: 40

参加年月日: 2013/01/01

最近の投稿

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 ??
2013/01/25 6:14
答え

Apoorva Prakash

ランク: Liferay Master

投稿: 659

参加年月日: 2010/06/15

最近の投稿

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

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!