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:
在使用Jasper (Tomcat)时,是否有方法可以让所有的jsp不创建会话?显然,Jasper将创建一个会话,除非您指定不要:
<%@ page contentType="text/html;charset=UTF-8" language="java" session="false" %>
Is there way to do this for the entire webapp (session="false")?
是否有办法为整个webapp(会话="false")这样做?
Its seems you can't change:
似乎你无法改变:
org.apache.jasper.runtime.JspFactoryImpl.getPageContext
Which will create a session unless the JSP says session=false.
这将创建一个会话,除非JSP表示会话=false。