存:User user=new User();session["USER"]=user; 取:User u= (User ) session["USER"]; 转载于:https://www.cnblogs.com/tinya/p/4365161.html