Fix: ID session pour permettre install multiples
This commit is contained in:
parent
5c5c428ed5
commit
1372e94edd
@ -71,6 +71,7 @@ else
|
|||||||
);
|
);
|
||||||
|
|
||||||
$aDol = new DOLIAuth("DB", $params, "loginfunction");
|
$aDol = new DOLIAuth("DB", $params, "loginfunction");
|
||||||
|
$aDol->setSessionName($dolibarr_main_db_name);
|
||||||
$aDol->start();
|
$aDol->start();
|
||||||
$result = $aDol->getAuth();
|
$result = $aDol->getAuth();
|
||||||
if ($result)
|
if ($result)
|
||||||
|
|||||||
@ -22,8 +22,9 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*! \file htdocs/user/logout.php
|
/**
|
||||||
\brief Fichier de deconnexion
|
\file htdocs/user/logout.php
|
||||||
|
\brief Fichier de deconnexion
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (!empty ($_SERVER["REMOTE_USER"]))
|
if (!empty ($_SERVER["REMOTE_USER"]))
|
||||||
@ -35,6 +36,7 @@ define('DOL_DOCUMENT_ROOT', $dolibarr_main_document_root);
|
|||||||
require_once "../includes/pear/Auth/Auth.php";
|
require_once "../includes/pear/Auth/Auth.php";
|
||||||
|
|
||||||
$a = new DOLIAuth("DB");
|
$a = new DOLIAuth("DB");
|
||||||
|
$a->setSessionName($dolibarr_main_db_name);
|
||||||
$a->setShowLogin (false);
|
$a->setShowLogin (false);
|
||||||
$a->start();
|
$a->start();
|
||||||
if ($a->getAuth())
|
if ($a->getAuth())
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user