title: Session Timeout manually
body: <p>I have 2 pages on my dummy site in asp.net, (default.aspx and default2.aspx), On default.aspx,  i created session like below</p>
  
  <pre><code>   protected void Page_Load(object sender, EventArgs e)
      {
          Session["MySession"] = "WELCOME";
          Session.Timeout = 1;
      }
      protected void Button1_Click(object sender, EventArgs e)
      {
          Response.Redirect("default2.aspx");
      }
  </code></pre>
  
  <p>and on default2.aspx</p>
  
  <pre><code> if (Session["MySession"] != null)
              Response.Write(Session["MySession"]);
          else
              Response.Write("Session Timed Out");
  </code></pre>
  
  <p>i was wondering that after 1 min the session will get erase, as i have timeout, but after one minute when i click on the button it redirected me to default2.aspx, and displayed a session value "WELCOME". can anyone tell me how to erase session value after particular duration</p>