1. 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?

Discussion in 'XenForo Questions and Support' started by VLEPSC, Dec 12, 2012.

  1. VLEPSC

    VLEPSC Member

    Haven't been able to figure this one out. Thanks
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    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.
     
  3. James

    James Well-Known Member

    Wouldn't it show last activity as "viewing forum index" or whatever, if they'd just logged in?
     
  4. Chris D

    Chris D XenForo Developer Staff Member

    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.
     
  5. ManOnDaMoon

    ManOnDaMoon Well-Known Member

    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.
     
  6. VLEPSC

    VLEPSC Member

    For me, the last log in and not necessarily last activity is very important. Thanks for the replies.
     
  7. Sheldon

    Sheldon Well-Known Member

    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?
     
  8. ManOnDaMoon

    ManOnDaMoon Well-Known Member

    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.
     
  9. imno007

    imno007 Active Member

    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. ;)
     
  10. Martok

    Martok Well-Known Member

    Look at a user's membercard or in their profile and it clearly tells you when they were last seen.
     
  11. imno007

    imno007 Active Member

    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.
     
  12. Martok

    Martok Well-Known Member

    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.
     
  13. imno007

    imno007 Active Member

    Yes, it's set to allowed. Pretty sure that's the admin default also, but yeah, I never changed it.
     
  14. Jeremy

    Jeremy XenForo Moderator Staff Member

    As long as you have access to bypass the users privacy, you should always see a last visit date.
     
  15. imno007

    imno007 Active Member

    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
     
  16. imno007

    imno007 Active Member

    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: Dec 10, 2013

Share This Page