From 63bf2ce3277bd6794dbe0ee9766845c4c017cac1 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Thu, 3 May 2018 01:33:30 -0600 Subject: [PATCH] Change cookie expiry to one hour to track visits, not visitors --- lib/gatheranalytics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gatheranalytics.php b/lib/gatheranalytics.php index 5416530..d279405 100644 --- a/lib/gatheranalytics.php +++ b/lib/gatheranalytics.php @@ -48,7 +48,7 @@ try { $uuid = gen_uuid(); } - setcookie("sw-uuid", $uuid, time() + 60 * 60 * 24 * 30, "/", $_SERVER['HTTP_HOST'], false, true); + setcookie("sw-uuid", $uuid, time() + 60 * 60 * 1, "/", $_SERVER['HTTP_HOST'], false, true); // // Get the user's IP address