Asp.Net Login Issue With IE
<p>The issue i am facing is that i have normal login form with username and password fields, it logins and redirects me  to my landing page for browsers Firefox,Chrome,Safari.</p>

<p>But for IE 8 what happens is that first time when i login there i get redirected to my landing page,but it does not show me username in my welcome text, so from that i can see no session is present so on clicking anything i am back to my loging page.</p>

<p>But on 2nd login i am properly logged in with my session as i get my username in welcome text.</p>

<pre><code>strUser = username.Text;
 String StrDetais = "SELECT * FROM [SubmissionForm].[dbo].tbl_userdetails t  where Email='" + strUser +  "' AND Password='" + password.Text + "'";
DataTable dt = GetResultTable(StrDetais);
        if (dt.Rows.Count != 0)
        {
            //Add all user data in session 
            Session.Add("username", dt.Rows[0]["Name"].ToString());
            Session.Add("email", strUser);
            Session["CompanyName"] = dt.Rows[0]["CompanyName"].ToString();
            Session["Title"] = dt.Rows[0]["Title"].ToString();
            Session["Role"] = dt.Rows[0]["Role"].ToString();
            Session["UserId"] = dt.Rows[0]["Sr_no"].ToString();
            //Redirect to home page
            ClientScript.RegisterStartupScript(typeof(Page), "MessagePopUp", "window.location.href = 'Home.aspx';", true);
        }
</code></pre>
