File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Portals and Portlets and the fly likes Remember me auto login Liferay Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Remember me auto login Liferay" Watch "Remember me auto login Liferay" New topic

Remember me auto login Liferay

Maria Laxmi
Ranch Hand

Joined: Aug 08, 2008
Posts: 40
I have to develop Remember me auto login functionality for the portal site. We are using Liferay6 and want to use Remember me functionality of Liferay. How can I enable it?

And also I have a requirement that if user is logged in using remember me and if he comes on the site after few days and still logged in at that time if user wants to use My Account page to change information we should ask for password again (here My Account page is redirects user to the custom portlet). Now I am not sure how to implement this functionality. How would I come to know that the user is signed in using remember me or signed in as a normal sign in process so that I can define two sub flows for the My Account page.

if signed in using remember me then asked for the password before rendering the My Account page and if signed in through normal authentication process then just show them My Account page.


Guy deLyonesse
Ranch Hand

Joined: Apr 12, 2011
Posts: 200

For those requirements you're going to have to alter the functionality of the portal itself. The best way to do this is to use hooks to change the .jsp pages dealing with the login as well as the code that handles session authentication.

If you want the user to still be treated as logged in after a few days, then you'll probably have to use cookies in some way but I'm not sure why that would be a benefit if yuo still have a requirement for the user to re-authenticate in order to access their My Account page.
I agree. Here's the link:
subject: Remember me auto login Liferay
It's not a secret anymore!