Skip to content

Commit

Permalink
[-] MO : Fix bug #PNM-3197, {wrong token} while upgrading big dbs
Browse files Browse the repository at this point in the history
  • Loading branch information
gRoussac committed Jan 26, 2015
1 parent bd38e64 commit f9094e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions AdminSelfUpgrade.php
Expand Up @@ -331,10 +331,10 @@ public function createCustomToken()
$iso_code = 'en';
$admin_dir = trim(str_replace($this->prodRootDir, '', $this->adminDir), DIRECTORY_SEPARATOR);
$cookiePath = __PS_BASE_URI__.$admin_dir;
setcookie('id_employee', $id_employee, time() + 7200, $cookiePath);
setcookie('id_tab', $this->id, time() + 7200, $cookiePath);
setcookie('iso_code', $iso_code, time() + 7200, $cookiePath);
setcookie('autoupgrade', $this->encrypt($id_employee), time() + 7200, $cookiePath);
setcookie('id_employee', $id_employee, 0, $cookiePath);
setcookie('id_tab', $this->id, 0, $cookiePath);
setcookie('iso_code', $iso_code, 0, $cookiePath);
setcookie('autoupgrade', $this->encrypt($id_employee), 0, $cookiePath);
return false;
}

Expand Down

0 comments on commit f9094e7

Please sign in to comment.