comparing session variable value to a string
I am comparing the session variable to a string to check if the login type is administrator or not. Code i am using : if (Session["loggedInUsername"] == null) { btnLogin.Text = "Sign In"; lblWelcome.Text = "Welcome!"; hypManageRestaurants.Enabled = false; hypManageReviews.Enabled = false; hypPostReviews.Enabled = false; } else { if (Session["loggedInUserType"] == "Administrator") { hypManageRestaurants.Enabled = true; hypManageReviews.Enabled = true; hypPostReviews.Enabled = true; } else { hypManageRestaurants.Enabled = false; hypManageReviews.Enabled = false; hypPostReviews.Enabled = true; }