• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Remember me auto login Liferay  RSS feed

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.


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.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!