noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 01/07: For plugin , send a NOCONX when the se


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 01/07: For plugin , send a NOCONX when the session is expired instead of stopping
Date: Tue, 8 Mar 2022 17:08:55 -0500 (EST)

sparkyx pushed a commit to branch devel
in repository noalyss.

commit ad0110ca338d98386972f2320cae55adfba96925
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sat Mar 5 10:31:07 2022 +0100

    For plugin , send a NOCONX when the session is expired instead of stopping
---
 html/ajax.php | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/html/ajax.php b/html/ajax.php
index 76bb6a25..7d8f3cf2 100644
--- a/html/ajax.php
+++ b/html/ajax.php
@@ -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);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]