Description

This module writes the current timestamp value, per user, to the users_data table everytime hook_preprocess_page() is called.

This is a utility module intended for use with other modules.

Details

users_data row is written as:

\Drupal::service('user.data')->set('page_access_user_data_timestamp', $UID, 'access_timestamp', time());

and can be accessed like: