<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">I have a better idea. You fire up your debugger and show me. Every instance I have found is based on code similar to this:<br><br>$user->access ? t('%time ago', array('%time' => format_interval(time() - $account->access))) : t('never')<br><br>Tracing $user->access back leads to the same conclusion as I came to in the beginning. The $user-access is being loaded and updated before it is presented. To give another simple example I first looked at the time codes in phpmyadmin. I have a simple php snippet that just sets the $user->access time, time() and login in time to print to screen. I expected to see the differences. which I did. So I thought things were working. But when I refreshed the phpmyadmin browser it showed that calling the snippet had actually updated the database date. So
the access time shows the time that the snippet was run.<br><br><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: Moshe Weitzman <weitzman@tejasa.com><br>To: development@drupal.org<br>Sent: Monday, February 12, 2007 3:32:12 PM<br>Subject: Re: [development] No last access?<br><br><div>Carl Mc Dade wrote:<br>> Well, I spent sunday evening being sick and looking over last access <br>> functionality historically as per Bérs advice. I looked back to version <br>> 4.4 to 4.7.4. a found surprisingly that Drupal has never really had a <br>> last access functionality. It has had calculation code to gather
such <br>> information but nothing definative. Strangely enough there has not been <br>> too much call for this information so no one has noticed.<br><br>This is all nonsense. The user admin page shows you last access for each <br>user. And that number is accurate, so we must be collecting that info <br>somewhere. Furthermore, access is easily available for all modules in the <br>standard $user object.<br><br>Fire up your debugger and you will see the writing of this infomation in <br>sess_write().<br></div></div><br></div></div><br>
<hr size=1>It's here! Your new message!<br>Get
<a href="http://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/"> new email alerts</a> with the free <a href="
http://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/">Yahoo! Toolbar.</a></body></html>