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

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

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

原文地址:https://www.cnblogs.com/fifiyong/p/6411512.html