<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> </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> </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 <drupal@f2s.com><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>> Is there no longer a last access functionality?<br>> using the global user and calling $user->access<br>> gives the value after the database has been updated.<br>> Not the value in the database at the time of login.<br>> Ex. the value in the database table is 0000002.<br>> You will not get this value but the value 0000003<br>> which is the time of the latest access.<br><br>The above was your original question.....<br><br>> No luck with that. Time code shown in<br>> database = 1171293946 timecode called by<br>> using the following<br><snip><br>> print $account-access;<br>> 1171294179<br><br>Erm, am I missing something here or should you not be doing:-<br><br>print $account->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> // Update the user table timestamp noting user
has logged in.<br> db_query("UPDATE {users} SET login = %d WHERE uid = %d", time(),<br>$user->uid);<br><br>and this is from session.inc:-<br><br> db_query("UPDATE {users} SET access = %d WHERE uid = %d", time(),<br>$user->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>