How can I capture the last login and view of the user the next time they connect to the website in XPages?


I am working on developing a custom user portal using XPages. I would like to capture a user's last login/signin information and display it on the portal when the user logs in on the banner page.

Does anyone know how I can accomplish this for an XPages app?

Any help or insight into this is greatly appreciated.

Thank you! Shabana. My Portal Link:

I do this with a User document and just save the information of the last login there. Then I set a flag in sessionScope to know that I saved it already.