Fix problemi sessione Apache

This commit is contained in:
2026-04-17 12:05:10 +02:00
parent 5fa3aa7c24
commit 65888cc865
2 changed files with 8 additions and 6 deletions
+4 -3
View File
@@ -1,3 +1,7 @@
<?php
session_start();
include '../db_conf.php';
?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="it"> <html lang="it">
<head> <head>
@@ -8,9 +12,6 @@
</head> </head>
<body> <body>
<?php <?php
session_start();
include '../db_conf.php';
if (!isset($_SESSION['id'])) { if (!isset($_SESSION['id'])) {
header('Location: ../login.php'); header('Location: ../login.php');
exit(); exit();
+4 -3
View File
@@ -1,3 +1,7 @@
<?php
session_start();
include '../db_conf.php';
?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="it"> <html lang="it">
<head> <head>
@@ -8,9 +12,6 @@
</head> </head>
<body> <body>
<?php <?php
session_start();
include '../db_conf.php';
if (!isset($_SESSION['id'])) { if (!isset($_SESSION['id'])) {
header('Location: ../login.php'); header('Location: ../login.php');
exit(); exit();