Session variable turns out null
<p>In Page1.aspx.cs<br>
I am using <code>Session["var1"] = "TestCheck";</code></p>

<p>Now in Page2.aspx,<br>
This same session variable <code>Session["var1"]</code> turns out <code>null</code>:</p>

<pre><code>string var1 = Session["var1"].ToString();
</code></pre>

<p>as gives me an error:</p>

<blockquote>
  <p>Object reference not set to an
  instance of an object</p>
</blockquote>

<p>Thanks
SC</p>
