<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt">That sounds like the most logical explaination so far. Trying it now.<br><div>&nbsp;</div><div> <div><font face="Arial" size="2">Carl Mc Dade<br>____________________________<br>Web Developer<br><br></font></div><div><font face="Arial" size="2"><br>&nbsp;</font></div></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: AjK &lt;drupal@f2s.com&gt;<br>To: development@drupal.org<br>Sent: Monday, February 12, 2007 4:57:43 PM<br>Subject: Re: [development] No last access?<br><br><div><br>&gt; Is there no longer a last access functionality?<br>&gt; using the global user and calling $user-&gt;access<br>&gt; gives the value after the database has been updated.<br>&gt;
 Not the value in the database at the time of login.<br>&gt; Ex. the value in the database table is 0000002.<br>&gt; You will not get this value but the value 0000003<br>&gt; which is the time of the latest access.<br><br>The above was your original question.....<br><br>&gt; No luck with that. Time code shown in<br>&gt; database = 1171293946 timecode called by<br>&gt; using the following<br>&lt;snip&gt;<br>&gt; print $account-access;<br>&gt; 1171294179<br><br>Erm, am I missing something here or should you not be doing:-<br><br>print $account-&gt;login;<br><br>"login" holds the timestamp of the last login, "access" holds the timestamp<br>of the last browser hit for the user.<br><br>This is from user.module:-<br><br>&nbsp;&nbsp;// Update the user table timestamp noting user has logged in.<br>&nbsp;&nbsp;db_query("UPDATE {users} SET login = %d WHERE uid = %d", time(),<br>$user-&gt;uid);<br><br>and this is from session.inc:-<br><br>&nbsp;&nbsp;db_query("UPDATE {users} SET
 access = %d WHERE uid = %d", time(),<br>$user-&gt;uid);<br><br>regards,<br>--Andy<br><br></div></div><br></div></div><br>

<hr size=1>TV dinner still cooling?<br><a href="http://us.rd.yahoo.com/evt=49979/*http://tv.yahoo.com/">Check out "Tonight's Picks"</a> on Yahoo! TV.</body></html>