From 89e99d727dbaa3955b5b49dd9d1538307314033a Mon Sep 17 00:00:00 2001 From: Marco Date: Sat, 10 Mar 2018 20:54:24 +0100 Subject: [PATCH] Document resynchronization of session data with authoritative database --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index b13c40c..f370a97 100644 --- a/README.md +++ b/README.md @@ -115,6 +115,8 @@ Should your database tables for this library need a common prefix, e.g. `my_user During development, you may want to disable the request limiting or throttling performed by this library. To do so, pass `false` to the constructor as the fourth argument, which is named `$throttling`. The feature is enabled by default. +During the lifetime of a session, some user data may be changed remotely, either by a client in another session or by an administrator. That means this information must be regularly resynchronized with its authoritative source in the database, which this library does automatically. By default, this happens every five minutes. If you want to change this interval, pass a custom interval in seconds to the constructor as the fifth argument, which is named `$sessionResyncInterval`. + ### Registration (sign up) ```php