Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Aryan sahu
last login time
July 24, 2012 5:46 AM
Answer

Aryan sahu

Rank: Junior Member

Posts: 73

Join Date: July 23, 2012

Recent Posts

how can i get the last login time of a user and display it in my jsp? thanks
jaid shaik
RE: last login time
July 24, 2012 6:20 AM
Answer

jaid shaik

Rank: Regular Member

Posts: 170

Join Date: October 7, 2010

Recent Posts

Hi qanesh,

check this link

I hope it helpful.
Jignesh Vachhani
RE: last login time
July 24, 2012 6:22 AM
Answer

Jignesh Vachhani

Rank: Liferay Master

Posts: 780

Join Date: March 10, 2008

Recent Posts

you can use UserLocalserviceUtil.getUser(userId).getLastLoginDate() ;


Or

ThemeDisplay themeDisplay = (ThemeDisplay)request.getAttribute(WebKeys.THEME_DISPLAY);
themeDisplay.getUser().getLastLoginDate();
Aryan sahu
RE: last login time
July 24, 2012 6:24 AM
Answer

Aryan sahu

Rank: Junior Member

Posts: 73

Join Date: July 23, 2012

Recent Posts

thank you ...