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.
Have you disabled the session in JSP? At the top of your jsp:
<%@ page language="java" session="false"%>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With