From 132df3e68ee35c4281734e96705e9cf857a571cc Mon Sep 17 00:00:00 2001 From: Frederik Ring Date: Thu, 22 Feb 2024 09:57:26 +0100 Subject: [PATCH] fix: make sure all cookies expire at the same point in time (#134) * fix: make sure all cookies expire at the same point in time * chore: update magnustools and adjust lifetime parameter to be an int --- composer.lock | 13 ++++++------- public_html/index.php | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/composer.lock b/composer.lock index c5956ae..b199c8f 100644 --- a/composer.lock +++ b/composer.lock @@ -12,12 +12,12 @@ "source": { "type": "git", "url": "https://github.com/wbstack/magnustools.git", - "reference": "785d4965a672a5d9e7b82cc20d3f18186186223d" + "reference": "a2bfea66f736858f6d3ad70060ce227a37d9f3ce" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wbstack/magnustools/zipball/785d4965a672a5d9e7b82cc20d3f18186186223d", - "reference": "785d4965a672a5d9e7b82cc20d3f18186186223d", + "url": "https://api.github.com/repos/wbstack/magnustools/zipball/a2bfea66f736858f6d3ad70060ce227a37d9f3ce", + "reference": "a2bfea66f736858f6d3ad70060ce227a37d9f3ce", "shasum": "" }, "require": { @@ -47,10 +47,9 @@ "description": "Useful classes for Wikimedia Toolforge", "homepage": "https://bitbucket.com/magnusmanske/magnustools", "support": { - "source": "https://github.com/wbstack/magnustools/tree/main", - "issues": "https://github.com/wbstack/magnustools/issues" + "source": "https://github.com/wbstack/magnustools/tree/main" }, - "time": "2022-01-31T17:41:52+00:00" + "time": "2024-02-15T09:36:39+00:00" } ], "packages-dev": [], @@ -63,5 +62,5 @@ "prefer-lowest": false, "platform": [], "platform-dev": [], - "plugin-api-version": "2.2.0" + "plugin-api-version": "2.3.0" } diff --git a/public_html/index.php b/public_html/index.php index 50fd0f3..d2f49fb 100755 --- a/public_html/index.php +++ b/public_html/index.php @@ -33,7 +33,7 @@ */ require_once ( 'php/Widar.php' ) ; -$widar = new Widar ( 'widar' ) ; +$widar = new Widar ( 'widar', 60*60*24*30*3 ); // make all cookies expire in three months if ( !$widar->render_reponse ( $botmode ) ) $widar->output_widar_main_page () ; ?>