For plugin , send a NOCONX when the session is expired instead of stopping

This commit is contained in:
sparkyx 2022-03-05 10:31:07 +01:00
parent eba72b4c68
commit ad0110ca33

View file

@ -22,7 +22,13 @@ if ( !isset ($_REQUEST['gDossier'])) exit();
require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php';
mb_internal_encoding("UTF-8");
/**
* if not connected, session is expired then exit with a message NOCONX
*/
if ( ! isset($_SESSION[SESSION_KEY."g_user"])) {
echo "NOCONX";
die();
}
global $g_user,$cn,$g_parameter;
$cn=Dossier::connect();
$g_parameter=new Noalyss_Parameter_Folder($cn);