From 87f8c364fe83de8a4155169d09944b6acd485bf6 Mon Sep 17 00:00:00 2001 From: DrMaxNix Date: Tue, 20 Feb 2024 20:20:05 +0100 Subject: [PATCH] :zap: close session for static file serving --- api/static/index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/static/index.php b/api/static/index.php index 74192e5..82e334b 100644 --- a/api/static/index.php +++ b/api/static/index.php @@ -28,6 +28,9 @@ // SERVE FILE // + // make sure session isn't locked + if(extension_loaded("session")) session_write_close(); + // general headers header("Access-Control-Allow-Origin: *");