request.getSession()方法的应用

request.getSession(true):若存在会话则返回该会话,否则新建一个会话。
request.getSession(false):若存在会话则返回该会话,否则返回NULL

原文地址:https://www.cnblogs.com/renboqie/p/5582412.html