session in asp.net?
<p>I am facing a problem. </p>

<p>I maintain a session after login like <code>session["UserID"]</code> and every page is locked with this session like </p>

<pre><code>if(session["UserID"] == "")
{
Response.redirect("./loginpage.aspx");
}
else
{
// page working code
}
</code></pre>

<p>Problem is that i am saving the data then redirect the page after saving session was automatically clear and the page is redirect to login page.</p>

<p>in web config file i write this line</p>

<pre><code>&lt;sessionState mode="InProc"  timeout="60"&gt;
</code></pre>

<p>how i solved this problem to stay in session state on save data and redirecting the same page.</p>
