Developer forum

Forum » CMS - Standard features » Last login property does not seem to update

Last login property does not seem to update

Andreas Pettersson
Reply

Hi,
On a user you can see this. But why is the "last login on" sometimes empty and sometimes a value. And when I log in it not updating?

When and how does this field updates? Becuase our customer want to see when a user last log in and remove users after a certain amount of time (3 months example) but it does not look like we can trust on this field.

 

Regards

Andreas


Replies

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply
This post has been marked as an answer

Hi Andreas,

The login date is updated for login in the frontend - not for login in the backend (admin).
By default the value is empty (null), because the user has never logged in.

Are you experiencing a different behavior? Is the login date not updated for frontend logins on your website?

/Morten

Votes for this answer: 1
 
Andreas Pettersson
Reply

Hi,

Thanks for the clarification. I though that it should update when i login to backend also but it was not so.
In frontend it looks like it works correct for our regular users but we have custom login using adfs and then it not seem to update. Maybe i need to update my code to update this field when log in using adfs.

Regards
Andreas

 

You must be logged in to post in the forum