Reputation: 5818
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.
Upvotes: 3
Views: 4313
Reputation: 5474
Have you disabled the session in JSP? At the top of your jsp:
<%@ page language="java" session="false"%>
Upvotes: 5