• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How can I see when a user last logged in?

Chris D

XenForo developer
Staff member
#2
It's in their profile under "Last Activity". Which is the last activity as opposed to the actual date they logged in, but, actually more relevant.
 

Chris D

XenForo developer
Staff member
#4
Wouldn't it show last activity as "viewing forum index" or whatever, if they'd just logged in?
It would.

But whether they had just logged in, or they went there after being on the site for a few hours, I still think last activity is always more relevant than the last login date. Especially with the cookie lifetime as long as it is. The last actual login date (if it is even logged, don't think it is) could be weeks/months ago.
 

ManOnDaMoon

Well-known member
#5
I'm not sure last login date is displayed anywhere directly, but you can deduce it from the user's IP list.

Admin CP > Search for user > IP addresses tab

The upper IP address should show the last login date.
 

Sheldon

Well-known member
#7
Not sure I can see why. Many sites I have the save login, always stay logged in option on..... wouldn't that kinda defeat what you are wanting to know?
 

ManOnDaMoon

Well-known member
#8
In my understanding, last login date = last visit. XenForo does make the difference between last activity and last visit, that is why I understand the need to get the latter somehow.
 

imno007

Well-known member
#9
I know this is an old thread, but it's what I found when I looked to see if anyone else had asked about this. I can't understand why it would be such a mystery why someone might want to know when a user last logged on. The answer is simple: some of us have no desire to keep members who haven't bothered to even log on to the site for months or longer. That's dead wood. Anyway, it's not the end of the world, and as someone else mentioned it can be deduced from looking at the IP in admin, but it would be nice if it were there in plain site when you looked at a member's profile, as it has been with most of the other forum platforms I've used. Certainly can't see how it would hurt. ;)
 

Martok

Well-known member
#10
it would be nice if it were there in plain site when you looked at a member's profile, as it has been with most of the other forum platforms I've used. Certainly can't see how it would hurt. ;)
Look at a user's membercard or in their profile and it clearly tells you when they were last seen.
 

imno007

Well-known member
#11
Look at a user's membercard or in their profile and it clearly tells you when they were last seen.
I'm not sure exactly how that works, to be honest, but the "last seen" info is not always available. I am looking at two offline members right now, for example, just two people I picked at random. One member hasn't posted since 10 November, but the membercard shows her as being last seen on 28 November; the other member last posted on 2 December, and so he was obviously on after the first one, but there is no "last seen" info showing for him.
 

Martok

Well-known member
#12
I'm not sure exactly how that works, to be honest, but the "last seen" info is not always available. I am looking at two offline members right now, for example, just two people I picked at random. One member hasn't posted since 10 November, but the membercard shows her as being last seen on 28 November; the other member last posted on 2 December, and so he was obviously on after the first one, but there is no "last seen" info showing for him.
Do you have the "Bypass User Privacy" permission set to Allow for yourself? If not, this may account for missing last seen info if that user is hidden.
 

imno007

Well-known member
#13
Do you have the "Bypass User Privacy" permission set to Allow for yourself? If not, this may account for missing last seen info if that user is hidden.
Yes, it's set to allowed. Pretty sure that's the admin default also, but yeah, I never changed it.
 

imno007

Well-known member
#15
Hmmm. I actually used a modification a while back to disallow users from being anonymous, so they shouldn't be able to do it in the first place. I'll try undoing the changes to see if that makes a difference. Maybe the modification created some kind of conflict. Thanks
 

imno007

Well-known member
#16
On second thought, that doesn't appear to be the problem. I think I must have actually gotten rid of that modification already at some point in the past, because I can't find any of the template modifications I would have needed to create. Also, I logged in to the account of the user I mentioned above (should have done that first!) who displayed no "last seen" info, and the box next to "show online status" is ticked. So I guess I'll just live with it until and if I can find some problem to correct. In the meantime, maybe someone else will chime in here who's run into the same issue. Thanks again
 
Last edited: