Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Remember me auto login Liferay

 
Maria Laxmi
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thanks


 
Guy deLyonesse
Ranch Hand
Posts: 200
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic