Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6913787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:15:44+00:00 2026-05-27T09:15:44+00:00

Magento 1.6. Within the login processing code, is it possible to find out when

  • 0

Magento 1.6.

Within the login processing code, is it possible to find out when the user/customer has logged in for the very first time?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T09:15:45+00:00Added an answer on May 27, 2026 at 9:15 am

    If your Magento is configured not to use double-opt-in (email confirmation) for customer registrations, then you can use what @PauGNU already posted:

    $created_at = $customer->getCreatedAt();
    

    But when it comes to double-opt-in, Magento creates the customer account immediately, i.e. setting created_at to the current system time, but does not activate it (so that customer cannot login before confirming) and only sends a confirmation mail.

    This means an unkown delay (minutes, days, weeks, whatever) between created_at and the very first login, so created_at wouldn’t be of use anymore.

    Actually, Magento has a place, where customer login times are being tracked by default: the table field log_customer.login_at, accessible by Mage_Log_Model_Customer, for example.

    But, if you plan to use it:

    • by default the class has no method to get the very first login. You’d need to develop that yourself.
    • if “Log Cleaning” is active (to keep the database smaller), you’ll gonna lose the saved login times.

    In that case, I’d prefer identifying the most proper event, hooking into it and saving only the very first login time per customer to a separate table.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is very basic magento question i guess. I want to first get all
I'm running a Magento site that has different prices for different user groups. I'd
I have 4 categories within the 'Default Category' category. Currently by default Magento is
I am just starting out with Magento and have two requirements for a private
How can I add Magento's default newsletter signup module within a CMS page? Thanks
I'm having problems getting the addAttributeToFilter function within a loop to behave in Magento.
New to magento here, I have figured out how to use my local.xml to
In magento, it is possible to get the simple products associated to a configurable
I'm building a Magento shop for a customer and would like to add an
Our client has a Magento-powered store and needs the ability to create tax reports

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.