New session created on every request in domain mode(Wildfly 39 or later)

42 views
Skip to first unread message

Vision Yi

unread,
Aug 11, 2026, 8:41:46 PMAug 11
to WildFly
Hi Wildfly,
     I have identified a session issue in new versions 39, 40, and 41. In older versions, such as 26.1.3 to 38 , everything works fine. However, when running the application using the domain mode (with a deployed WAR), I get the following output:

JSP Code:
[
Server: <%= System.getProperty("jboss.server.name"%><br>
Node: <%= System.getProperty("jboss.node.name"%><br>
Mod cluster Node: <%= System.getProperty("jboss.modcluster.node.name"%><br>
Session: <%= request.getSession().getId() %><br>
Session New: <%= request.getSession().isNew() %><br>
]
output:
[
Server: server-one
Node: primary:server-one
Mod cluster Node: null
Session: ehzDFYocY52VjBI7g67PhTEpuvy9FAF5GXAw4Maj
Session New: true ( "New session created on every request in domain mode"  )
]

Additionally, a new session is generated every time, and the existing session cannot be retrieved properly. This issue does not occur when running in standalone mode, which behaves normally."
Reply all
Reply to author
Forward
0 new messages