数据库添加数据
This commit is contained in:
@@ -69,9 +69,9 @@ public class UserLoginServlet extends HttpServlet {
|
||||
if ("true".equals(rememberPassword)) {
|
||||
// 如果有记住密码则 将密码保存在cookie中
|
||||
Cookie userNameCookie = new Cookie("userName", userName);
|
||||
Cookie userPwdCookie = new Cookie("userPwd", userPwd);
|
||||
// Cookie userPwdCookie = new Cookie("userPwd", userPwd);
|
||||
resp.addCookie(userNameCookie);
|
||||
resp.addCookie(userPwdCookie);
|
||||
// resp.addCookie(userPwdCookie);
|
||||
}
|
||||
// 能够db中查询到对象 登录成功了 将用户数据存放在session中
|
||||
session = req.getSession();
|
||||
|
Reference in New Issue
Block a user