I have a website that allows users to make accounts with user profiles. So once he is logged in, he has an option to edit his profile. He clicks on the edit profile link that directs him to edit.php. This page provides him with a simple form. Once the form is filled, the database is updated. IT WORKS FINE TILL HERE.
Now the issue is that after the form is filled, i redirect the user to the "loginsuccess.php" which is the profile page. But the NEW CHANGES TO THE PROFILE DONT SHOW on the profile.
But once the user logs out and logs in again, THE CHANGES APPEAR.
Why dont the changes show immediately? Why do i have to logout and login again?