<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">Nope, That is updated first so their is no way of pulling the old time code before the newer on sets. This is the same problem as the access object. As matter of fact the login ia updated a split second before the access time.<br><br>access = 1171296985<br>login= 1171296984<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>No need to miss a message. <a href="http://us.rd.yahoo.com/evt=43910/*http://mobile.yahoo.com/mail
">Get email on-the-go </a><br>with Yahoo! Mail for Mobile. <a href="http://us.rd.yahoo.com/evt=43910/*http://mobile.yahoo.com/mail
">Get started.</a></body></html>