Sessions in asp.net? Maintain the session?
<p>In web application, i have admin module and it contain login page also, i am maintaining the sessions throught the admin if session is null it is redirecting to login page of admin, but when i write the page name in url [which is a page of admin module], it is displaying the page, instead of redirect to login page. I am checking session in every page. This is my code.</p>

<pre><code>      protected void Page_Load(object sender, EventArgs e)
       {
           if(Session["Uid"] != "")
             {

             }
           else
             {
                  Response.Redirect(" login.aspx");
             }
</code></pre>

<p>even though it is not working when open new tab in browser and copy paste the url , it is displaying the page instead of redirecting to login page. can you help me.</p>
