From cea32d3a2c113d556a1e2f40b969502e70ad2954 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Thu, 26 Aug 2021 14:57:06 +0200 Subject: [PATCH 1/2] session of 15min WPCRM --- src/WordPress/WPCrm.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/WordPress/WPCrm.php b/src/WordPress/WPCrm.php index 04a71ec..3263e54 100644 --- a/src/WordPress/WPCrm.php +++ b/src/WordPress/WPCrm.php @@ -471,7 +471,8 @@ class WPCrm if ( isset($_SESSION[self::$sessionKey]) and isset($_SESSION['lastActivity']) and - ($_SESSION['lastActivity'] + 120) < time() + // 15 minutes session + ($_SESSION['lastActivity'] + (15 * 60)) < time() ) { self::$sessionDestroyed = true; unset($_SESSION[self::$sessionKey]); From b208c78b97e68c078345620a5a023186a1753ee8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Thu, 26 Aug 2021 14:58:52 +0200 Subject: [PATCH 2/2] bump to 2.1.5 --- apiConfig.readonly.json | 2 +- composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apiConfig.readonly.json b/apiConfig.readonly.json index 2717f24..222000c 100644 --- a/apiConfig.readonly.json +++ b/apiConfig.readonly.json @@ -1,5 +1,5 @@ { - "version": "2.1.1", + "version": "2.1.5", "tokenTimeout": 60, "apiRequestRatePerMinute": 256, "servicesDBCache": 10 diff --git a/composer.json b/composer.json index 38dd94f..a262e2c 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "type": "library", "description": "LDC CRM Client V2", "license": "MIT", - "version": "2.1.4", + "version": "2.1.5", "authors": [ { "name": "Jérémy Munsch",