HttpSession session=request.getSession(); session.setAttribute("name", k.getUsername()); //存放于服务器内存;
response.addCookie(cookie) //存放于客户端中;
request.setAttribute("name", k.getUsername()); //生命周期为一个请求,速度快;
"registerSuccess.jsp?username=Lily" //url传值
by: 发表于:2017-12-29 10:50:22 顶(0) | 踩(0) 回复
??
by: 发表于:2017-12-29 10:50:22 顶(0) | 踩(0) 回复
??
回复评论