request.getSession()的参数
2008-06-20 22:16
211 查看
request.getSession() will return the current session and if one does not exist, a new session will be cretaed.
request.getSession(true) will return the current session if one exists, if one doesn't exits a new one will be created.
So there is actually no difference between the two methods.
HOWEVER, if you use request.getSession(false), it will return the current session if one exists and if one DOES NOT exist a new one will NOT be cretaed.
request.getSession(true) will return the current session if one exists, if one doesn't exits a new one will be created.
So there is actually no difference between the two methods.
HOWEVER, if you use request.getSession(false), it will return the current session if one exists and if one DOES NOT exist a new one will NOT be cretaed.
相关文章推荐
- 对request.getSession(false)以及参数为true的理解
- 有关request.getSession参数(true或者false)的含义
- 有关request.getSession参数(true或者false)的含义
- 由request.getSession()想到的函数参数设计原则
- 有关request.getSession参数(true或者false)的含义
- request.getSession(false)用途
- request.setAttribute()、session.setAttribute()和request.getParameter()的联系与区别
- ASP.NET-->>Get和Post的接收参数:Request.QueryString,Request.Form,Request.Params异同
- request.getSession(true) request.getSession(false) request.getSession()
- SMARTY模板中如何使用get,post,request,cookies,session,server变量
- request getsession() getsession(boolean create) invalidate() 说明
- request.setAttribute()、session.setAttribute()和request.getParameter()的联系与区别
- java中request,application,session三个域及参数简单示例
- WebUtils.getSessionAttribute(request, "");
- nodejs的request创建的get和post请求,带参数
- request.getSession(true)和request.getSession(false)的区别
- request.setAttribute()和request.getSession().setAttribute()区别
- request.setAttribute()、session.setAttribute()和request.getParameter()的联系与区别
- springMvc 完美解决 multipart/form-data 方式提交请求 在 Filter 中 ServletRequest.getParameter方法 获取不到参数的问题
- request.setAttribute()、session.setAttribute()和request.getParameter()、request.getAttribute()的联系与区别