<div dir="ltr">just 2 cents from our project:<div>we have extended the user profile by two login dates:</div><div>- loginDate (the last)</div><div>- lastLoginDate (the login date before last login)</div><div><br></div><div>loginDate gets updated as soon as a user logs in. In order to preserve the "last login date", before updating loginDate, we do lastLoginDate = loginDate, and then  loginDate = now.</div><div><br></div><div>This way you have access to the last login date (lastLoginDate) in the whole session or until the user logs in again... This way you can show personalised content based on the last login date even after a few clicks within the same session. </div><div><br></div><div>Cheers, Balz</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 6, 2015 at 11:13 AM, Michael Wechner <span dir="ltr"><<a href="mailto:michael.wechner@wyona.com" target="_blank">michael.wechner@wyona.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
I have done a default implementation of the user history, e.g.<br>
<br>
<a href="https://127.0.0.1:8443/yanel/my-realm/yanel/users/1412880733771.html" target="_blank">https://127.0.0.1:8443/yanel/my-realm/yanel/users/1412880733771.html</a><br>
<br>
which means successful and failed login attempts are being logged.<br>
<br>
This also allows to determine when a user did login last time, which for<br>
example<br>
can help to promote recent changes since last login.<br>
<br>
Enjoy<br>
<span class="HOEnZb"><font color="#888888"><br>
Michael<br>
--<br>
Yanel-development mailing list <a href="mailto:Yanel-development@wyona.com">Yanel-development@wyona.com</a><br>
<a href="http://mx2.wyona.com/cgi-bin/mailman/listinfo/yanel-development" target="_blank">http://mx2.wyona.com/cgi-bin/mailman/listinfo/yanel-development</a><br>
</font></span></blockquote></div><br></div></div>