public HttpSession getSession(boolean create)Returns the current HttpSession associated with this request or, if if there is no current session and create is true, returns a new session. If create is false and the request has no valid HttpSession, this method returns null.这几句英文搞不定那搞软件可就比较难了!
HttpSession session=request.getSession();
session.getAttribute("sessVal");
session.getAttribute("sessVal");就这么写了
strMobileNumber = session.getAttribute("mobile_num");
strMobileNumber = session.getAttribute("mobile_num");
中的request.getSession(true); 这个TRUE 和 FALSE传进去这两个参数有什么区别
中传入参数 true和false和不传参数,有什么区别
HttpSession httpsession = HttpServletRequest.getSession();