2
0
forked from Wavyzz/dolibarr

Merge branch '20.0' of github.com:Dolibarr/dolibarr into 21.0

This commit is contained in:
Maxime Kohlhaas
2025-01-09 18:23:38 +01:00
committed by Laurent Destailleur
9 changed files with 26 additions and 101 deletions

View File

@@ -1127,7 +1127,7 @@ function purgeSessions($mysessionid)
$sessValues = file_get_contents($fullpath); // get raw session data
if (preg_match('/dol_login/i', $sessValues) && // limit to dolibarr session
preg_match('/dol_entity\|s:([0-9]+):"('.$conf->entity.')"/i', $sessValues) && // limit to current entity
(preg_match('/dol_entity\|i:('.$conf->entity.')/', $sessValues) || preg_match('/dol_entity\|s:([0-9]+):"('.$conf->entity.')"/i', $sessValues)) && // limit to current entity
preg_match('/dol_company\|s:([0-9]+):"(' . getDolGlobalString('MAIN_INFO_SOCIETE_NOM').')"/i', $sessValues)) { // limit to company name
$tmp = explode('_', $file);
$idsess = $tmp[1];