We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14066
    • 37 Posts
    After login with the WebLogin, the landing page is called "logged_in". On this page you get a message like "welcome user". Now I also want to show the last login date of the user, is that possible?
      • 14066
      • 37 Posts
      Nobody? Ik really need to install this function on a website very soon... sad
      • There is a field in the web_user_attributes, "last_login". This is stored in the SESSION as $_SESSION[’webLastlogin’]. You can access it with a snippet. It is stored as a UNIX timestamp, so you’d need to use strftime() or date() to format it.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org