数据库添加数据

This commit is contained in:
landaiqing committed 2023-07-03 10:09:54 +08:00
1 parent b490de185d
commit 9c4e657396
2 files changed
+24 -12

No files matched your search

@@ -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();