有关request.getSession参数(true或者false)的含义
2008-02-22 13:15
911 查看
[align=left]文档里说:
Returns the current HttpSession associated with this request or, if if there is no current session and create is true, returns a new session.[/align]
[align=left]session你可以认为是每一个IE进程对应一个会话(你新开一个IE进程就可以对应两个会话的)
getSession都是返回当前用户的会话对象,参数的区别在于
参数为true,则如果“当前用户的会话对象”为空(第一次访问时)则创建一个新的会话对象返回
参数为false,则如果“当前用户的会话对象”为空,则返回null(即不自动创建会话对象)[/align]
Returns the current HttpSession associated with this request or, if if there is no current session and create is true, returns a new session.[/align]
[align=left]session你可以认为是每一个IE进程对应一个会话(你新开一个IE进程就可以对应两个会话的)
getSession都是返回当前用户的会话对象,参数的区别在于
参数为true,则如果“当前用户的会话对象”为空(第一次访问时)则创建一个新的会话对象返回
参数为false,则如果“当前用户的会话对象”为空,则返回null(即不自动创建会话对象)[/align]
相关文章推荐
- 有关request.getSession参数(true或者false)的含义
- 有关request.getSession参数(true或者false)的含义
- 对request.getSession(false)以及参数为true的理解
- request.getSession(true)和request.getSession(false)的区别
- request.getSession(false)与request.getSession(true)的区别
- request.getSession(false)与request.getSession(true)区别
- 转:request.getSession(true)和request.getSession(false)的区别
- request.getSession(true) and request.getSession(false)
- request.getSession(false),request.getSession()和request.getSession(true)的区别
- request.getSession(true)和request.getSession(false)的区别
- request.getSession(true)和request.getSession(false)的区别
- request.getSession()和request.getSession(true/false)的理解
- request.getSession()和request.getSession(true/false)的理解
- 日常-request.getSession(false)和request.getSession(true)用法区别
- request.getSession(true)和request.getSession(false)的区别
- java 中 request.getSession(true、false、null)的区别
- 关于request.getSession(true/false/null)的区别
- 关于request.getSession(false)和request.getSession(true)测试与Andriod模拟浏览器处理session机制的实现
- request.getSession(true)和request.getSession(false)的区别
- request.getSession(false)&request.getSession(true)的区别