title: Session variable has old value, needs to update with page redirect
body: <p>I have session variable that dont update with new value. I have two pages, one were you enter the values and klick on the button and you get redirected to page 2 and there you can check your input, if this is wrong you click back-button and you go back to the first page where you can change the input but now when i click the button to validate again the new value does not show up in the session variable but only the old value. I have been readingabout session for the last day but i just cant find the problem, the behind code is below:</p>
  
  <p>Page1</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
      if (this.Session["value1"] != null)
      {
          lbl1.Text = (String)this.Session["value1"].ToString();
      }
  }   
  
  public string info { get { return lbl1.Text; } }
  
  protected void inputButton_onclick(object sender, EventArgs e)
  {
      Page.Validate();
  
      if (Page.IsValid)
      {
          Session["value1"] = info;
  
          Response.Redirect("~/validpage.aspx");
      }
  
  }
  </code></pre>
  
  <p>Page 2</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
      if (Session["value1"] != null)
      {   
          lbl2.Text = (String)Session["value1"].ToString();
      }        
  }
  
  protected void BackButton_Click(object sender, EventArgs e)
  {
      Session["value1"] = lbl2.Text;
  
      Response.Redirect("~/Default.aspx");
  }
  </code></pre>
  
  <p>Maybe i have staired my self blind on this code as to me this should not have this problem it is presenting. Any idea and help will be appreciated.</p>