I am having some trouble with PHP sessions, but only in my browser (Google Chrome v.84.0.4147.105 64bits). It seems that the session is not being saved. For example, for this code:
session_start();
$_SESSION['hello'] = 'world';
echo 'hello ' . $_SESSION['hello'];
echo '<br>ID: ' . session_id();
In any browser get:
hello world ID: ksr9shdsjnpenhv23ldtfqvwc2
And the same if I reload the page. But for my browser I get a different session ID every time I reload the page, and the $_SESSION['world'] variable is not available for other files.
Any idea? There is nothing before session_start(), actually those lines are the whole file