-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed
Labels
Description
Description
The following code:
index.php
<?php
session_start();
$_SESSION['user'] = 'juan';
$_SESSION['status'] = true;
header("location: home.php");
exit();
?>
home.php
<?php
session_start();
$user = $_SESSION['user'];
echo $user;
?>
In my home.php view no data is shown and in my session folder the sessions are duplicated for each call to the session_start() method.
I am using the latest version of php 8.1 which is php 8.1.27 and Nginx server 1.14 and 1.24. Operating system debian 12
PHP Version
PHP 8.1.27
Operating System
debian 12