{
WebContext ctx = WebContextFactory。get();
HttpSession session=ctx。getSession();
TAdmin admin=(TAdmin)adminList。get(0);
session。setAttribute("userType", 0);
session。setAttribute("admin", admin);