ArrayList arrUserId  = null;  //1
arrUserId = new ArrayList(); //2
arrUserId = (ArrayList)this.Application["arrUserId"] ; //3
if(arrUserId != null && arrUserId.Contains(loginName))//4
{
this.Response.Write("<script>alert('对不起该用户已在别处登陆!');</script>");
}
arrUserId.Add(loginName); //5
this.Application["arrUserId"] = arrUserId ;注释5这里老抱错,去掉注释3那行后就没问题,但是实现不了我需要的
到底应该怎么做呢!