getSession()/getSession(true):当session存在时返回该session,否则新建一个session并返回该对象
getSession(false):当session存在时返回该session,否则返回null
request.getSession()、reqeust.getSession(false)和request.getSession(true)
原文:http://www.cnblogs.com/fifiyong/p/6411512.html