close session for static file serving

This commit is contained in:
DrMaxNix 2024-02-20 20:20:05 +01:00
parent b674af27d2
commit 87f8c364fe

View File

@ -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: *");