为何啊?不能够这样比较么? 行 1:  <%
行 2:  Session.Contents["username"] = "username";
行 3:  if(Session.Contents("username")==null)
行 4:  {
行 5:   Response.Redirect("Login.aspx");