Is HttpSession in java servlet is created only after
HttpSession s = request.getSession();
?
In my code I didn\'t write that, but when
A HttpSession is created when calling request.getSession().
But if you access a JSP by default it will automatically create a session.This behaviour can be disabled by using: <%@ page session="false">
<%@ page session="false">
Are you using JSP?