title: PHP or JS redirect to another page with reloading and url changing
body: <p>I know there are a lot of similar questions, but no solution worked for me.</p>
  
  <p>I have index.php with a login form. When a user tries to login, then the login-datas are send to login.php this file checks if the username and password are valid. 
  If so, the file map.php shell be loaded.
  The only working solution I found for this is: 
      header("Location: map.php");
  But when the page is loaded the url is still ../login.php how can I change this?</p>
  
  <p>Another problem is, if I go from pageB.php to pageA.php, doing some database changes, then redirecting from pageA.php back to pageB.php with header("Location: pageB.php"); then pageB.php is loading, but doesn't show the changed database entries, just the old ones. How can I force to reload the page for just ONE time (means no Refresh:X)?  </p>