request.getSession()、reqeust.getSession(false)和request.getSession(true)

       getSession()/getSession(true):当session存在时返回该session,否则新建一个session并返回该对象

       getSession(false):当session存在时返回该session,否则返回null

posted @ 2017-02-17 20:58  wuyongwork  阅读(936)  评论(0编辑  收藏  举报