FIX Yogosha report 4465 (backport)
This commit is contained in:
parent
f453e43cca
commit
8a0702074a
@ -187,7 +187,7 @@ if (! function_exists('dol_loginfunction'))
|
||||
// Set cookie for timeout management
|
||||
$prefix=dol_getprefix('');
|
||||
$sessiontimeout='DOLSESSTIMEOUT_'.$prefix;
|
||||
if (! empty($conf->global->MAIN_SESSION_TIMEOUT)) setcookie($sessiontimeout, $conf->global->MAIN_SESSION_TIMEOUT, 0, "/", null, false, true);
|
||||
if (! empty($conf->global->MAIN_SESSION_TIMEOUT)) setcookie($sessiontimeout, $conf->global->MAIN_SESSION_TIMEOUT, 0, "/", null, (empty($dolibarr_main_force_https) ? false : true), true);
|
||||
|
||||
if (GETPOST('urlfrom', 'alpha')) $_SESSION["urlfrom"]=GETPOST('urlfrom', 'alpha');
|
||||
else unset($_SESSION["urlfrom"]);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user