Is HttpSession in java servlet is created only after
HttpSession s = request.getSession();
?
In my code I didn\'t write that, but when
To make it complete:
request.getSession()
, in your servlet, use request.getSession(false)
to get existing session without creating new sessionsession
- unless you specify <%@ page session="false" %>
session.isNew()
to find out, if it has been newly created