Hello, My problem is solved, the cause was the mutualised server I use is behind a proxy. I share here my solution, if it can help somebody : function phpAds_SessionSetAdminCookie($name, $value)
{
$conf = $GLOBALS['_MAX']['CONF'];
$host = isset($_SERVER['HTTP_X_FORWARDED_HOST'])
? $_SERVER['HTTP_X_FORWARDED_HOST']
: $_SERVER['HTTP_HOST'];
return setcookie(
$name,
$value,
0,
dirname($_SERVER["SCRIPT_NAME"]),
preg_replace('/:\d+$/', '', $host),
!empty($conf['openads']['requireSSL']),
true
);
}Cheers, Laurent.