[development] No last access?

Carl Mc Dade carl_mcdade at yahoo.com
Mon Feb 12 16:12:02 UTC 2007

That sounds like the most logical explaination so far. Trying it now.
 Carl Mc Dade
Web Developer


----- Original Message ----
From: AjK <drupal at f2s.com>
To: development at drupal.org
Sent: Monday, February 12, 2007 4:57:43 PM
Subject: Re: [development] No last access?

> Is there no longer a last access functionality?
> using the global user and calling $user->access
> gives the value after the database has been updated.
> Not the value in the database at the time of login.
> Ex. the value in the database table is 0000002.
> You will not get this value but the value 0000003
> which is the time of the latest access.

The above was your original question.....

> No luck with that. Time code shown in
> database = 1171293946 timecode called by
> using the following
> print $account-access;
> 1171294179

Erm, am I missing something here or should you not be doing:-

print $account->login;

"login" holds the timestamp of the last login, "access" holds the timestamp
of the last browser hit for the user.

This is from user.module:-

  // Update the user table timestamp noting user has logged in.
  db_query("UPDATE {users} SET login = %d WHERE uid = %d", time(),

and this is from session.inc:-

  db_query("UPDATE {users} SET access = %d WHERE uid = %d", time(),


The fish are biting. 
Get more visitors on your site using Yahoo! Search Marketing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20070212/3a9e847e/attachment.htm 

More information about the development mailing list