This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I'm running Tomcat 4.1.30. I'm using both a Servlet and a Struts Action to call a JSP. I've included the session="false" attribute in the page directive and I do not reference a session in the Servlet or Action. Regardless, Tomcat creates a session according to the Tomcat Manager application. How can I prevent the overhead of Tomcat creating an unneeded session. My hack workaround is to call session.invalidate() but this does not prevent the expense of session creation. Thanks in advance for your time.
I'm fairly certain someone asked this recently on Tomcat user. The answer was basically "Tomcat will always create a session, but whether it is used or not is another question." The people there went on to proclaim that the 'overhead' of session creation is breathtakingly minimal, and that an empty session is 'vanishingly small' in terms of memory.