title: How to get last login date of customer
body: <p>I would like to get the last login date of my customer (on Magento).</p>
  
  <p>I'm doing this way : </p>
  
  <pre><code>$customer = Mage::getSingleton('customer/session')-&gt;getCustomer();  
  $logCustomer = Mage::getModel('log/customer')-&gt;load($customer-&gt;getId());  
  $lastVisited = $logCustomer-&gt;getLastVisitAt();
  </code></pre>
  
  <p>But it doesn't work, the result is NULL</p>
  
  <p>There is a table named "customer_log" in my database, and this table is empty! 
  This table has columns : 'customer_id', and 'login_at'.</p>
  
  <p>Do you know if i have to activate an option in the backoffice, to make it works ?</p>
  
  <p>Thanks, and sorry for my bad english.</p>