I\'ve index.php
and callSession04.php
. When index.php
does an AJAX request PHP SESSION variables are set on callSession04.php
The session state is on the server, your code updates it on the server correctly (I assume). What you experience is the representation of the server state (index.php) is not updated on the client (browser) after the Ajax call.
You have multiple options to fix that:
This can not be fixed in the php (server side) alone.