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
Please sign in to flag this as inappropriate.