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

63 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."

Paul Ferraro

unread,
Sep 20, 2026, 10:51:06 AM (7 days ago) Sep 20
to WildFly
Can you be more specific?  "running the application using domain mode" is not sufficiently descriptive, as it says nothing about your server configuration, nor your deployment topology.
Are you using the default server configurations?  If so, which profile? If not, can you post your configuration modifications?
Is this a distributable web application, i.e. as defined in web.xml?  I assume sessions are tracked via cookie (per the default behaviour)?
Reply all
Reply to author
Forward
0 new messages