Tomcat creating Httpsessions automatically
843841Nov 2 2007 — edited Jul 7 2008In one of my servlets i have written the following code(TOmcat 6.0)
HttpSession session = request.getSession(false);
(i.e if already session is there then only give me back the session otherwise return null)
The above statement is always returning a session even though i have not created a session explicitly.It is never returning a null.
I assume Tomcat by default is creating session. Can we prevent TOmcat from creating the session automatically?
thanks
rama