I have to login again to Matomo after not having used it for a certain amount of time. How can I extend the time set for the session inactivity timeout?
Thank you.
David.
I have to login again to Matomo after not having used it for a certain amount of time. How can I extend the time set for the session inactivity timeout?
Thank you.
David.
Hi,
It’s most likely that you are experiencing this issue which will be fixed in 3.13.4:
OK. Thank you for the reply!
Looking forward to 3.13.4.
Here is a screenshot of the message I’m getting; “Error: Your session has expired due to inactivity. Please log in to continue”.
Hi,
If you can’t wait, you can apply the change from Fix session cookie expire by sgiehl · Pull Request #15633 · matomo-org/matomo · GitHub manually to the core/Session.php
:
diff --git a/core/Session.php b/core/Session.php
index f2f984d357e..dd5b1229d70 100644
--- a/core/Session.php
+++ b/core/Session.php
@@ -222,7 +222,7 @@ public static function writeCookie($name, $value, $expires = 0, $path = '/', $do
{
$headerStr = 'Set-Cookie: ' . rawurlencode($name) . '=' . rawurlencode($value);
if ($expires) {
- $headerStr .= '; expires=' . $expires;
+ $headerStr .= '; expires=' . gmdate('D, d-M-Y H:i:s', $expires) . ' GMT';
}
if ($path) {
$headerStr .= '; path=' . $path;