Skip to content

Session constant SID changes its value #12408

@jorgsowa

Description

@jorgsowa

Description

I'm not sure how to classify this problem, but the constant SID changes its value during the request. I understand the logic behind the changes, but that's just against the rules what constant is. It shouldn't change it's value.

Example:
https://3v4l.org/4s0Nm

$sid0 = defined('SID');
ini_set('session.use_cookies', 0);
ini_set('session.use_only_cookies', 0);
session_start();
$sid1 = SID;
session_destroy();
session_start();

$sid2 = SID;

var_dump($sid0);
var_dump($sid1);
var_dump($sid2);

PHP Version

All versions

Operating System

No response

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions