HttpSession request.getSession(false)
glassfish, java, session
Solution
Have you disabled the session in JSP? At the top of your jsp:
<%@ page language="java" session="false"%>
Problem
I have a problem. In my `servlet` in glassfish I call the method `request.getSession(false)`. It should `return null`. But instead there is always a `session` returned. Moreover, if I `invalidate` the `session` right before the call to `getSession(false)` - it `returns null`. It means something else creates the `session`! What could that be? The `servlet` is redirected from the .jsp page. I am using the glassfish.