Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <diosmosis@users.noreply.github.com>2019-06-17 07:03:06 +0300
committerGitHub <noreply@github.com>2019-06-17 07:03:06 +0300
commit824204a88d80b229df3708d1edcf5416eeb2ea44 (patch)
tree52b1cfd1bcb0e5961920094a9f69517d5cbefd55 /core/Date.php
parentd61a9ea28a798f5598e2cb69c0ca6b3342b6c157 (diff)
Detect expired session use (#14502)
* Add INI config option and add tests. * Detect expired sessions. * Update config docs. * Apply review feedback including storing expiration in session fingerprint. * fixing tests. * fix unit tests * fix test
Diffstat (limited to 'core/Date.php')
-rw-r--r--core/Date.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/Date.php b/core/Date.php
index ec2a4dfd06..b91bbcd0ce 100644
--- a/core/Date.php
+++ b/core/Date.php
@@ -1070,7 +1070,12 @@ class Date
return new Exception($message . ": $dateString");
}
- private static function getNowTimestamp()
+ /**
+ * For tests.
+ * @return int|null
+ * @ignore
+ */
+ public static function getNowTimestamp()
{
return isset(self::$now) ? self::$now : time();
}