[php-src] Issue #13385: problem with session_start PHP 8.1.27
| From: | kewingJ | Date: | Tue, 13 Feb 2024 14:53:31 +0000 |
| Subject: | [php-src] Issue #13385: problem with session_start PHP 8.1.27 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-246447@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/13385
Author: kewingJ
### Description
The following code:
```php
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.
```
Resulted in this output:
```
<img width="193" alt="Captura1" src="https://github.com/php/php-src/assets/46539023/e33b2b7e-2cf3-4901-87cd-91aa54828c75">
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