solved question about "Last Login" date

Strumelia
Strumelia
@strumelia
9 years ago
3,605 posts
This is a simple question I'm just wondering about-
In my User Accounts Browser, there's a column showing the date of "Last Login" for each member.

If there are a bunch of members showing today as the Last Login...does that include all the people who just stay logged in all the time? OR, does it actually mean that that person actively logged in today? In other words, does Last login include the "still logged in" people in its list of today's logins? Thanks


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 04/12/16 03:16:16PM
michael
@michael
9 years ago
7,821 posts
A user who is logged in and comes back to visit the site today will show the "Last Login" as today even if they did not use the login form today.

eg: I use the "keep me logged in" feature for my system and haven't used the login form for at least a few weeks. But it shows me as "Last Login" today.
Strumelia
Strumelia
@strumelia
9 years ago
3,605 posts
Ok, so then if I understand this correctly- If you have the site set to not bump logged in users off for say three weeks...during that time will the "keep me logged in" users all keep showing a Last Logged In date of the current day...even if they don't actually browse to or visit the site?


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
michael
@michael
9 years ago
7,821 posts
I think its just the last time they visited.

If you think its not that, I can go over the code to get an exact depiction of what's going on, if necessary.
Strumelia
Strumelia
@strumelia
9 years ago
3,605 posts
How would the site know if the person had really actually visited the site today, if they can stay logged in until "user rests cookies" (as I have mine set).

It's not hugely important, but I was just wondering if the large number of people showing last log in of today represented actual human site activity or was partially simply "stay logged in" people who may not have been actually on the site in weeks.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
michael
@michael
9 years ago
7,821 posts
After having a look at the code, its firing off of the user_last_login table in the datastore.

That field is updated in a couple of locations, one is in the login submit form.

Another location is when the users session is in 'user start session' where the users details are retrieved because they have asked to be kept logged in.

So the "last login" is when the user last visited the site. If the user visited the site in with a different browser and was not logged in, then that's different though.

Its safe to think that "Last Login" was the last time a member of your site looked at the site in a browser.
Strumelia
Strumelia
@strumelia
9 years ago
3,605 posts
michael:
Its safe to think that "Last Login" was the last time a member of your site looked at the site in a browser.

Not sure I understand all you wrote, but it sounds like good news then- like those people are actually visiting. Thanks Michael!


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015