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
This commit is contained in:
2020-06-05 20:10:40 +00:00
parent 44bd9a80b0
commit c5cb5cbd3a

View File

@@ -69,7 +69,7 @@ class authparams
// {{{ // {{{
{ {
if (!isset ($_SESSION) || session_id () === "") if (!isset ($_SESSION) || session_id () === "")
session_start (); throw new \Exception ("No session previously enabled", 403);
if (!isset ($_SESSION["domframework"]["auth"]["email"]) || if (!isset ($_SESSION["domframework"]["auth"]["email"]) ||
!isset ($_SESSION["domframework"]["auth"]["password"])) !isset ($_SESSION["domframework"]["auth"]["password"]))
throw new \Exception ("No previous email in session", 403); throw new \Exception ("No previous email in session", 403);