title: Make browser to go back by reloading page 1st and then scrolling it back again too
body: <h2>EXPLAINING WHAT I'M TRYING TO SOLVE:</h2>
  
  <p>I have a <strong>webpage (<code>file_list.php</code>) showing a list of files</strong>, and next to each file there is a button to delete it. When user press the DELETE button close to a certain file name, the browser goes to a script called <strong><code>delete_file.php</code> that deletes the file and then it tells browser to go back to the <code>file_list.php</code></strong> </p>
  
  <p><code>delete_file.php</code> uses a simple <code>header("Location: file_list.php”);</code> to go back to <code>file_list.php</code></p>
  
  <p>When browser goes back to <code>file_list.php</code> it <strong>reloads the page, but it DOES NOT scroll it back again to where the user was before</strong>. So let's say the user scrolled the files list and deleted the last file, when the browser shows again the page <code>file_list.php</code> it won't be scrolled to the bottom of the page again.<br>
  <br>
  <br>
  <br></p>
  
  <h2>THE WORKAROUND I CAME OUT WITH:</h2>
  
  <p>I found a strange way to work around this, basically <strong>instead of using <code>header("Location: file_list.php”);</code> in <code>delete_file.php</code> I simply use a javascript call <code>window.history.go(-1)</code>.</strong></p>
  
  <p>This workaround works perfectly when <strong>user is in session</strong> (simply using PHP <code>session_start</code> function): the <strong>browser RELOADS the file_list.php page and then scrolls it also back to where it was before.</strong>
  But if the user is NOT in session the browser scrolls the page but IT DOES NOT RELOAD IT before, so the user would still see the file he deleted in the file list.<br>
  <br>
  <br>
  <br></p>
  
  <h2>THE QUESTIONS</h2>
  
  <ol>
  <li><p>Do you know how to reproduce the behavior of the browser when goes back being in session even if we are not in session?</p></li>
  <li><p>Do you know a way out of this, even another way of solving this matter?</p></li>
  </ol>
  
  <p>Thanks!</p>
  
  <p><em>I know I could use AJAX to delete the file so I would not have to go every time to delete_file.php, but this is not the answer</em>.</p>