<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">Well, I spent sunday evening being sick and looking over last access functionality historically as per Bérs advice. I looked back to version 4.4 to 4.7.4. a found surprisingly that Drupal has never really had a last access functionality. It has had calculation code to gather such information but nothing definative. Strangely enough there has not been too much call for this information so no one has noticed.<br><br>The reason&nbsp; that I was&nbsp; getting a&nbsp; last access previously is because the re was another (ws_auth) module  loading the database. This module was only on my 4.7.4 test site not on later versions. So what I did was create a last access routine based on hook_user to satisfy my needs. I will post a feature request on this as there may be a greater need in the future for this to be a part of the
 API.<br><br><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: Carl Mc Dade &lt;carl_mcdade@yahoo.com&gt;<br>To: development@drupal.org<br>Sent: Sunday, February 11, 2007 1:33:27 PM<br>Subject: Re: [development] No last access?<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Yep,<br><br>I am digging further. It looks like the order of process has changed. I tried to use hook_user to place my own timestamp in the database. This did not work. It seems that all user functions are after update. <br><br>I will comeback with more information after more study of the behaviour.<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: Bèr Kessels &lt;ber@webschuur.com&gt;<br>To: development@drupal.org<br>Sent: Sunday, February 11, 2007 12:22:59
 PM<br>Subject: Re: [development] No last access?<br><br><div>Op zondag 11 februari 2007 10:36, schreef Carl Mc Dade:<br>&gt; This does not seem to be a problem in 4.7.4 but in 4.7.5+ and 5.1 calling<br>&gt; user_load() functions $user-&gt;access and $user-&gt;login give the updated<br>&gt; values and not the actual value in the database.<br><br>There were some security related changes made to the user _insert and _update. <br>Maybe thye have to do with this? I suggest you browse through the cvs logs of <br>user module to isolate the cahnges that cause this behaviour. Once <br>identified, and detailed, I am sure there are people willing to help you <br>solve the issue. It hmight have been an intentional change, it might have <br>been a new bug introduced by one of the security fixes.<br><br>Bèr<br>-- <br>Drupal, Ruby on Rails and Joomla! development: webschuur.com | Drupal hosting: <br><a rel="nofollow" target="_blank"
 href="http://www.sympal.nl">www.sympal.nl</a><br></div></div><br></div></div><br>

<hr size="1">
Don't get soaked.  Take a<a rel="nofollow" target="_blank" href="http://tools.search.yahoo.com/shortcuts/?fr=oni_on_mail&amp;#news"> quick peak at the forecast </a><br> with the<a rel="nofollow" target="_blank" href="http://tools.search.yahoo.com/shortcuts/?fr=oni_on_mail&amp;#news">Yahoo! Search weather shortcut.</a></div><br></div></div><br>

<hr size=1>Access over 1 million songs - <a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/">Yahoo! Music Unlimited.</a></body></html>