I'm having some troubles understanding how session variables actually work.
I have an account management page where the user has access to his informations (e-mail, password, city...) and can update them. However when the user saves the modifications and reload the page the informations are not being updated, even though it is successfully modified in the database.
To get the informations to update on the account management page he needs to log out and log back in. What can I do to have the informations update without the user having to log out/in ?
For instance in my code, something like this :
Your e-mail is <?php echo $_SESSION['simple_auth']['email'];?>
This will always display the same information even if I directly change it in the database.
How can I force PhP to update the variables ?
