Hi

What is the difference between User fields:

  • Last Access
  • Last Login

Thanks

Jeff in Seattle

Comments

WorldFallz’s picture

iirc, 'last login' is the last time the user actually logged in by supplying their userid and password. "last access" would be last time the user was browsing the site while already logged in. Since users can stay logged in for a period of time, they won't necessary match unless you force users to log in everytime they access the site.

crosputni’s picture

Is there a way to call last access on the user profile? I want admin to be able to view each user and see when they last accessed the website.

Thanks.

nathaniel’s picture

<?php print format_date($account->access); ?>

w01f’s picture

I'd like to be able to sort a views based on node author's last access - so that the most recently logged in and active authors' content will be first. Any idea how this might be accomplished?

danielphenry’s picture

Late reploy but to create that type of display:

1. Create a node view (just do everything except the sort part)
2. Add a relationship to the "node author"
3. Sort now has user fields available including "last access". Add the field to the sort. The relationship should automatically be selected but just in case make sure it's the "node author" relationship.

Anonymous’s picture

I've created a page view for people who like the currently logged in user. I want to show a list of people who've liked me since my last login.

Been messing with the user:last login and user:last access filters. Can't find to make it work. Can anyone please help me with this??

shiraz dindar’s picture

thanks.