diff --git a/src/Models/LoginSession.php b/src/Models/LoginSession.php index 5f4a6cb..df8a712 100644 --- a/src/Models/LoginSession.php +++ b/src/Models/LoginSession.php @@ -101,6 +101,12 @@ class LoginSession extends DataObject private static bool $anonymize_ip = false; + /** + * Ensure there is no risk of reading from an unsynced database replica so + * that the login session data is always up to date. + */ + private static bool $must_use_primary_db = true; + /** * The length of time between two updates to the LastAccessed field *