From 5f0902e2eaf39ec2fd7b5d3abc87634a671b3bd2 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 23 Apr 2009 13:52:45 +0000 Subject: [PATCH] Fix: the cookie is destroyed at the end of the session --- htdocs/user/logout.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/htdocs/user/logout.php b/htdocs/user/logout.php index 7013cda6c4f..00cab39cfd3 100644 --- a/htdocs/user/logout.php +++ b/htdocs/user/logout.php @@ -44,16 +44,6 @@ if ($conf->phenix->enabled && $conf->phenix->cookie) setcookie($conf->phenix->cookie, '', 1, "/"); } -// TODO Should remove this because entity should be saved in session -// and is already destroyed by the session_destroy later. -// Multi-Company module -if ($conf->multicompany->enabled) -{ - // Destroy entity cookie - $entityCookieName = "DOLENTITYID_dolibarr"; - setcookie($entityCookieName, '', 1, "/"); -} - // Destroy session $sessionname="DOLSESSID_".$dolibarr_main_db_name; if (! empty($conf->global->MAIN_SESSION_TIMEOUT)) ini_set('session.gc_maxlifetime',$conf->global->MAIN_SESSION_TIMEOUT);