Fixed issue #77.
This commit is contained in:
parent
9a6c7f4534
commit
4e71530eea
@ -418,7 +418,7 @@ var $currentCoordinationObject=null;
|
||||
|
||||
/* Use new PHP7.3.0 array method */
|
||||
$arr_cookie_options = array ('expires' => time() + (86400 * 30),'path' => $CONF_COOKIE_PATH,'domain' => $CONF_COOKIE_DOMAIN,'secure' => $CONF_COOKIE_SECURE,'httponly' => true,'samesite' => 'Lax');
|
||||
setcookie($CONF_COOKIE_PREFIX.'showLandPage', "false", $arr_cookie_options);
|
||||
setcookie('__Host-showLandPage', "false", $arr_cookie_options);
|
||||
|
||||
if (!is_null($login) && !is_null($password)) {
|
||||
$this->__authSession($login, $password);
|
||||
|
@ -166,7 +166,7 @@ var $permission;
|
||||
$init=true;
|
||||
|
||||
/* Récupération de l'id en fonction du cookie et/ou du $GET */
|
||||
$ID=(isset($_GET['id']))?$_GET['id']:(((isset($_COOKIE[$CONF_COOKIE_PREFIX.'SessionId'])) && ($CONF_COOKIE_ENABLE==true))?$_COOKIE[$CONF_COOKIE_PREFIX.'SessionId']:NULL);
|
||||
$ID=(isset($_GET['id']))?$_GET['id']:(((isset($_COOKIE['__Host-SessionId'])) && ($CONF_COOKIE_ENABLE==true))?$_COOKIE['__Host-SessionId']:NULL);
|
||||
|
||||
// gestion d'un id unique en fonction de l'ip
|
||||
if (!is_null($ID))
|
||||
@ -204,7 +204,7 @@ var $permission;
|
||||
if (!headers_sent()){
|
||||
/* Use new PHP7.3.0 array method */
|
||||
$arr_cookie_options = array ('expires' => time()+3600,'path' => $CONF_COOKIE_PATH,'domain' => $CONF_COOKIE_DOMAIN,'secure' => $CONF_COOKIE_SECURE,'httponly' => true,'samesite' => 'Lax');
|
||||
setcookie($CONF_COOKIE_PREFIX.'SessionId', $this->id, $arr_cookie_options);
|
||||
setcookie('__Host-SessionId', $this->id, $arr_cookie_options);
|
||||
}else{
|
||||
addError(4, "User Session", "Impossible de créer le cookie correspondant...", __line__, __file__);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user