How to compare a session's value? asp.net
<p>I cannot find the way of how to compare a session's value.</p>

<p>Query for the database:</p>

<pre><code> conexion.Open();
        SqlCommand comando = new SqlCommand("SELECT id_cliente,alias,area FROM tbleuser WHERE usuario=@username AND pass=@thepassword",conexion);
        comando.Parameters.AddWithValue("@username",user.Text);
        comando.Parameters.AddWithValue("@thepassword", pas.Text);
        SqlDataReader r = comando.ExecuteReader();


        while(r.Read())
        {

            Session["UsuarioId"] = r["id_cliente"].ToString();
            Session["AreaUsuario"] = r["area"].ToString();
            Session["AliasUsuario"] = r["alias"].ToString();
           checkUser();
        } 
</code></pre>

<p>The checkUser method should compare what kind of user is with the Alias field and here are the opcions i have used.</p>

<h1>1</h1>

<pre><code>if(Session["AliasUsuario"].ToString() == "Doctors")
{
//not working
}
</code></pre>

<h1>2</h1>

<pre><code>if(Convert.ToString(Session["AliasUsuario"]) == "Doctors")
{
//not working
}
</code></pre>

<h1>3</h1>

<pre><code>if(Convert.ToString(Session["AliasUsuario"]).Equals("Doctors"))
{
//not working
}
</code></pre>

<h1>4</h1>

<pre><code>if(Session["AliasUsuario"].ToString().Equals("Doctors"))
{
//not working
}
</code></pre>

<p>Any suggestions? I need to know what kind of user is login in before continue.
Thanks</p>
