/*
* �ж��û��Ƿ��Ѿ���¼
*/
public User chklogin(HttpServletRequest request) {
User admin = (User) request.getSession().getAttribute("admin");
String name = "";
User record = null;
if (admin != null) { // session�в������û���Ϣ
record = new User();
name = admin.getUser_login();
if (!StringUtil.isEmpty(name))
record.setUser_login(name);
} else { // �ж�Cookie���Ƿ�����û���Ϣ
record = new User();
name = RequestUtil.getValue(request, "adminname");
if (!StringUtil.isEmpty(name))
return null;
record.setUser_login(JavascriptEscape.unescape(name));
}
return record;
}