title: Simple way to detect page refresh/F5
body: <p>I have wasted lot of time in searching and finding the simplest way to detect a page <code>refresh</code> and when the user press <code>F5 button</code> on his browser.</p>
  
  <p>I have seen most of the samples provided on net but none of them could satisfy my needs.</p>
  
  <p>I will explain in a simple step way to understand my issue:</p>
  
  <ol>
  <li><p><strong>I am trying to use <code>sessions</code> and loading some images and storing them to folder.</strong></p></li>
  <li><p><strong>Next I have a button to process some operations on images.(Here I have a postback where I am trying to detect postback and savng them to the same folder.)</strong></p></li>
  <li><p><strong>Now here comes my issue now whenever user tried to <code>refresh</code> his page <code>manually</code> or by clicking <code>F5</code> buton on his browser I need to load all the images again from the folder.</strong></p></li>
  </ol>
  
  <p>So I need the simplest solution to detect this.</p>
  
  <p>Can anyone help me out with this?</p>
  
  <p>Here is my code:</p>
  
  <pre><code> If Page.IsPostBack Then
   //Here I am checking if the session is there or not.If it is already there I am adding images.
   Else
  //Here I am creating a new session and adding images.
  </code></pre>