Posted on: 5/14/2014 12:27:54 PM | Views : 251

hello
i have this in my login.aspx.cs page
if (dr.Read()) { Session["Email"] = txtEmail.Text; Response.Redirect("~/Admin/Default.aspx"); } now this will take me to ~/Admin/Default.aspx and the session has Session["Email"] has avalue
in my ~/Admin/Default.aspx.cs  i have
if (Session["Email"] == null) { Response.Redirect("~/login.aspx"); } and in my logout.aspx.cs i have
protected void Page_Load(object sender, EventArgs e) { Session["Email"] = null; Response.Redirect("~/Login.aspx"); } so now i want the Session["Email"] still has avalue until the user go to the logout page if the user go to the logout page then then the Session["Email"]= Null
p ...

Go to the complete details ...