From c5cb5cbd3a668c08e0a140d2797f5f179c10444c Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Fri, 5 Jun 2020 20:10:40 +0000 Subject: [PATCH] authparams : do not set the cookie in session, if it doesn't exists. No need to set a cookie on user side if it is not needed git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@6000 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- authparams.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authparams.php b/authparams.php index bf0d53b..26fb08a 100644 --- a/authparams.php +++ b/authparams.php @@ -69,7 +69,7 @@ class authparams // {{{ { if (!isset ($_SESSION) || session_id () === "") - session_start (); + throw new \Exception ("No session previously enabled", 403); if (!isset ($_SESSION["domframework"]["auth"]["email"]) || !isset ($_SESSION["domframework"]["auth"]["password"])) throw new \Exception ("No previous email in session", 403);