在JavaServletAPI中,HttpServletRequest接口的()方法用于返回当前请求相关联的会话,如果没有,返回null
·getSession()//=gerSession(true)默认为:getSession(true)
·getSession(true)
·getSession(false)
·getSession(null)
出自:佳木斯大学语言治疗学