From 7b74776b64c1fd3838a41a238059ddd2c23f0bc2 Mon Sep 17 00:00:00 2001 From: allandanton <33146694+allandanton@users.noreply.github.com> Date: Thu, 31 Aug 2023 11:30:07 +0200 Subject: [PATCH 1/9] Destroy session as the end --- crontab/cron_all_software.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crontab/cron_all_software.php b/crontab/cron_all_software.php index d7e8b764b..a091e0d9b 100644 --- a/crontab/cron_all_software.php +++ b/crontab/cron_all_software.php @@ -35,4 +35,6 @@ print("[".date("Y-m-d H:i:s"). "] Start to process software by pool of ".$chunk."\n"); $insert = $software->software_link_treatment($chunk); -print("[".date("Y-m-d H:i:s"). "] End of process\n"); \ No newline at end of file +print("[".date("Y-m-d H:i:s"). "] End of process\n"); + +session_destroy(); From aec66f59219f28e264897bb50efcbf38ad947d23 Mon Sep 17 00:00:00 2001 From: allandanton <33146694+allandanton@users.noreply.github.com> Date: Thu, 31 Aug 2023 11:30:42 +0200 Subject: [PATCH 2/9] Destroy session at the end --- crontab/cron_clean_orphan.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crontab/cron_clean_orphan.php b/crontab/cron_clean_orphan.php index ee116adba..b5f4eb168 100644 --- a/crontab/cron_clean_orphan.php +++ b/crontab/cron_clean_orphan.php @@ -30,4 +30,6 @@ } } -print("[".date("Y-m-d H:i:s"). "] End of process\n"); \ No newline at end of file +print("[".date("Y-m-d H:i:s"). "] End of process\n"); + +session_destroy(); From beb4d43b891e449d5ca9842fdb234f922ff99089 Mon Sep 17 00:00:00 2001 From: allandanton <33146694+allandanton@users.noreply.github.com> Date: Thu, 31 Aug 2023 11:31:21 +0200 Subject: [PATCH 3/9] Destroy session at the end --- crontab/cron_cve.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crontab/cron_cve.php b/crontab/cron_cve.php index 407eac50c..35aa141dc 100644 --- a/crontab/cron_cve.php +++ b/crontab/cron_cve.php @@ -46,3 +46,5 @@ $cve->verbose($cve->CVE_VERBOSE, 3); exit(); }?> + +session_destroy(); From 7a852ad6455ffb60071d3634698a0f169117666d Mon Sep 17 00:00:00 2001 From: allandanton <33146694+allandanton@users.noreply.github.com> Date: Thu, 31 Aug 2023 11:32:03 +0200 Subject: [PATCH 4/9] Destroy session at the end --- crontab/cron_cve_computer.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crontab/cron_cve_computer.php b/crontab/cron_cve_computer.php index 88ede7852..be3f39ee2 100644 --- a/crontab/cron_cve_computer.php +++ b/crontab/cron_cve_computer.php @@ -60,4 +60,6 @@ $cve->verbose($cve->CVE_VERBOSE, 3); exit(); } + +session_destroy(); ?> From d35703bceeb08663866549eaccbcbb5824ce8d70 Mon Sep 17 00:00:00 2001 From: allandanton <33146694+allandanton@users.noreply.github.com> Date: Thu, 31 Aug 2023 11:32:45 +0200 Subject: [PATCH 5/9] Destroy session at the end --- crontab/cron_ipdiscover.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crontab/cron_ipdiscover.php b/crontab/cron_ipdiscover.php index 6f74f45da..e2767ca8e 100644 --- a/crontab/cron_ipdiscover.php +++ b/crontab/cron_ipdiscover.php @@ -35,4 +35,6 @@ mysql2_query_secure($purgeQuery, $_SESSION['OCS']["writeServer"], $purgeDate); print("[".date("Y-m-d H:i:s"). "] ".$resultCount->num_rows." devices have been removed\n"); -} \ No newline at end of file +} + +session_destroy(); From aa96ee03d31422e59d044b52693ed30634ce15ab Mon Sep 17 00:00:00 2001 From: allandanton <33146694+allandanton@users.noreply.github.com> Date: Thu, 31 Aug 2023 11:33:32 +0200 Subject: [PATCH 6/9] Destroy session at the end --- crontab/cron_purge_history.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crontab/cron_purge_history.php b/crontab/cron_purge_history.php index e08262815..a8f016ed6 100644 --- a/crontab/cron_purge_history.php +++ b/crontab/cron_purge_history.php @@ -15,4 +15,6 @@ mysql2_query_secure($reqDelHistory, $_SESSION['OCS']["writeServer"]); print("[".date("Y-m-d H:i:s"). "] Download history has been purged of removed packages\n"); + +session_destroy(); ?> From 718c25a5281ee74fe3c32522fd8732281c570acf Mon Sep 17 00:00:00 2001 From: allandanton <33146694+allandanton@users.noreply.github.com> Date: Thu, 31 Aug 2023 11:34:10 +0200 Subject: [PATCH 7/9] Destroy session at the end --- crontab/cron_report_notification.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crontab/cron_report_notification.php b/crontab/cron_report_notification.php index 5b1cedb97..77b3e728e 100644 --- a/crontab/cron_report_notification.php +++ b/crontab/cron_report_notification.php @@ -25,7 +25,4 @@ $sendNotifs = $groupReport->sendReportNotification($scheduled, $values, $groupReport); } - - - - +session_destroy(); From 6d29f0f26ab1ea9aeba87c21c080097496649963 Mon Sep 17 00:00:00 2001 From: allandanton <33146694+allandanton@users.noreply.github.com> Date: Thu, 31 Aug 2023 11:34:56 +0200 Subject: [PATCH 8/9] Destroy session at the end --- crontab/cron_wol.php | 1 + 1 file changed, 1 insertion(+) diff --git a/crontab/cron_wol.php b/crontab/cron_wol.php index 47a7aa125..76d83fe33 100644 --- a/crontab/cron_wol.php +++ b/crontab/cron_wol.php @@ -43,3 +43,4 @@ } } +session_destroy(); From a19803dcd621f645001d1aa12e284b52dac6a241 Mon Sep 17 00:00:00 2001 From: allandanton <33146694+allandanton@users.noreply.github.com> Date: Thu, 31 Aug 2023 11:40:13 +0200 Subject: [PATCH 9/9] Move PHP end tag --- crontab/cron_cve.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crontab/cron_cve.php b/crontab/cron_cve.php index 35aa141dc..f10d55121 100644 --- a/crontab/cron_cve.php +++ b/crontab/cron_cve.php @@ -45,6 +45,7 @@ } else { $cve->verbose($cve->CVE_VERBOSE, 3); exit(); -}?> +} session_destroy(); +?>