How randomly was my session zero?

I am using Tomcat 6.0, JSF2.0.2

I realized that by chance the HttpServletRequest getSessionmethod returns null.

Could I randomly take up the session?

How do I debug who sets a session to null?

I checked it with request.getSession(true)and it returns null. How can it be that he cannot create a session?

+2
source share
1 answer

Firstly, this issue is not JSF related, as it is “just” component-based MVC infrastructure. This problem is more related to the servlet container in question, which in this case is Tomcat.

: () . Tomcat , null, cookie - cookie Tomcat. , emptySessionPath HTTP- <Connector> conf/server.xml true.

+1

All Articles