diff --git a/common/controllers/base/Controller.php b/common/controllers/base/Controller.php
index <HASH>..<HASH> 100644
--- a/common/controllers/base/Controller.php
+++ b/common/controllers/base/Controller.php
@@ -68,6 +68,9 @@ abstract class Controller extends \yii\web\Controller {
 			Yii::$app->assetManager->forceCopy = true;
 		}
 
+		// Log user's last activity if any.
+		Yii::$app->factory->get( 'userService' )->logLastActivity();
+
 		return parent::beforeAction( $action );
 	}
 
diff --git a/common/services/entities/UserService.php b/common/services/entities/UserService.php
index <HASH>..<HASH> 100644
--- a/common/services/entities/UserService.php
+++ b/common/services/entities/UserService.php
@@ -593,6 +593,20 @@ class UserService extends \cmsgears\core\common\services\base\EntityService impl
 		}
 	}
 
+	// Log last activity ----
+
+	public function logLastActivity() {
+
+		$user	= Yii::$app->user->getIdentity();
+
+		if( isset( $user ) ) {
+
+			$user->lastActivityAt	= Date( 'Y-m-d h:i:s' );
+
+			$this->update( $user, [ 'attributes' => [ 'lastActivityAt' ] ] );
+		}
+	}
+
 	// Delete -------------
 
 	public function delete( $model, $config = [] ) {
Added support to log user's last activity.