[development] No last access?
Carl Mc Dade
carl_mcdade at yahoo.com
Mon Feb 12 15:07:28 UTC 2007
I will try again using user_load() and comeback.
Carl Mc Dade
____________________________
Web Developer
----- Original Message ----
From: John VanDyk <jvandyk at iastate.edu>
To: development at drupal.org
Sent: Monday, February 12, 2007 3:55:48 PM
Subject: Re: [development] No last access?
http://drupal.org/node/91786 "user_load() clarification"
>I can imagine the the global user might not have
>the info in it... but if you do
>user_load(array('uid' => $user->uid)); // <--
>$user is global user, you might get a hold of
>it. Just shooting from the hip.
>
>Moshe Weitzman wrote:
>>Carl Mc Dade wrote:
>>>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.
>>
>>This is all nonsense. The user admin page shows
>>you last access for each user. And that number
>>is accurate, so we must be collecting that info
>>somewhere. Furthermore, access is easily
>>available for all modules in the standard $user
>>object.
>>
>>Fire up your debugger and you will see the
>>writing of this infomation in sess_write().
>>
>
>
>--
>* * * * *
>Lullabot's First Ever Advanced Workshops Are Here!
>Drupal API & Module Building - Advanced Drupal Themeing
>April 9th-13th - Providence, RI
>Early Bird Discounts Available Now
>http://www.lullabot.com/training
>* * * * *
____________________________________________________________________________________
Get your own web address.
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20070212/573fb930/attachment.htm
More information about the development
mailing list