KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Knowing a user's last login into the database
PRODUCT: 4D | VERSION: 2004.4 | PLATFORM: Mac & Win
Published On: October 13, 2006
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

You can get the date when a user last login to the database using the GET USER PROPERTIES command. You pass the user ID to this command and one of the properties returned is the last login date. For instance, the code below could return the last login date ($lastlogin) of the user whose ID is passed as parameter
GET USER PROPERTIES(UserID;$name;$startup;$password;$nbLogin;$lastLogin)