Is there any way to make all my JSPs not create sessions when using Jasper (Tomcat)? Apparently Jasper will create a session unless you specify not to:
<%@ page contentType="text/html;charset=UTF-8" language="java" session="false" %>
Is there way to do this for the entire webapp (session="false")?
Its seems you can't change:
org.apache.jasper.runtime.JspFactoryImpl.getPageContext
Which will create a session unless the JSP says session=false.
Haakon
This is container-specific; see this question.
来源:https://stackoverflow.com/questions/5093032/how-do-you-disable-session-creation-for-all-jsps-with-tiles