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);