From 6478af7d41472415a41604399976cc653ddb58f1 Mon Sep 17 00:00:00 2001 From: grandeljay Date: Thu, 22 Sep 2022 11:54:20 +0200 Subject: [PATCH] Refactor --- index.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/index.php b/index.php index 6e2c57cc..1d1f14e4 100644 --- a/index.php +++ b/index.php @@ -46,15 +46,9 @@ session_start( array( 'name' => 'wishthis', 'cookie_lifetime' => $sessionLifetime, + 'cookie_path' => '/' ) ); -setcookie( - name: session_name(), - value: session_id(), - expires_or_options: time() + $sessionLifetime, - path: '/', - domain: '' -); /** Backwards compatibility */ if (!isset($_SESSION['user']) || is_array($_SESSION['user'])) {