session not working
<p>I am using SQL express 2008 and visual studio 2010.</p>

<p>I made a simple login form using session. I want that if the session is null the user shouldn't be able to go to the desired page. I have written the following code:</p>

<pre><code>public void btnsubmit_CLICK(object sender, EventArgs e)
{
    if (TextBox1.Text =="admin" &amp;&amp; TXTID.Text =="admin")
    {
        Session["user"] = "admin";
        Response.Redirect("generate_report.aspx");
    }
    else
    {
        lblmsg.Text = "user name Or password is not correct!"; 
    }
</code></pre>

<p>NEXT PAGE:</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
{
    if (Session["user"] != "admin")
    {     
        Response.Redirect("Default.aspx");
    }
</code></pre>

<p>It is working fine if I use it locally but when I load it on the client server it doesn't work at all. Why is so?</p>
