request.getSession(true)和request.getSession(false)的区别

request.getSession(true):若存在会话则返回该会话,否则新建一个会话。
request.getSession(false):若存在会话则返回该会话,否则返回NULL
posted @ 2016-03-08 16:22  纯粹的人  阅读(158)  评论(0编辑  收藏  举报