diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 8fbd48bc855..cd8377ca5a8 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -660,7 +660,7 @@ if (! defined('NOLOGIN')) $cryptkey = (! empty($conf->file->cookie_cryptkey) ? $conf->file->cookie_cryptkey : '' ); $entityCookie = new DolCookie($cryptkey); - $entityCookie->_setCookie($entityCookieName, $entity, $ttl); + $entityCookie->setCookie($entityCookieName, $entity, $ttl); } // Hooks on successfull login