fix: session cookie path across directories

This commit is contained in:
raditarahman5-cloud
2026-06-13 00:35:11 +07:00
parent ea92b523b1
commit 1b44fc6a8f
8 changed files with 110 additions and 0 deletions
+1
View File
@@ -1,4 +1,5 @@
<?php
session_set_cookie_params(['path' => '/']);
session_start();
$is_public_action = ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['action']) && $_POST['action'] === 'simpan_pelaporan');