Please help review this code even when the user is not in the role apply it fail to redirect the user to status.aspx
if (!User.Identity.IsAuthenticated || !User.IsInRole("apply") || Session["ctre"].ToString() != "Court" || Session["userName"].ToString() == null)
{
if (!User.Identity.IsAuthenticated || Session["userName"].ToString() == null)
{
Response.Redirect("Login.aspx");
}
else
{
Response.Redirect("status.aspx");
}
}