On the production server, an error occurs that is not replicable on others. After the authentication process on a particular page, it appears to be somewhere in the filter chain. I found out that on this server, before entering this particular page, JSESSIONID is lost, but later "replaced" with another value (I found use of getSession (true) in the code, which means "if there is no session, create it").
The question is, what is the PRINCIPAL possibility of losing a session? Maybe a clue is that clustering is used on this server? What should I look for in the code (I was looking for removeAttribute () and setting the header, but I didn’t find anything like that) or what possibilities of session loss exist when the jboss server is running?