<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> </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>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>