The application is running on wildfly-10.0.0.Final.
The web.xml is specified as
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
id="WebApp_ID" version="3.1">
The session-config is:
<session-config>
<tracking-mode>COOKIE</tracking-mode>
</session-config>
However in the xhtml file the links generated by h:outputLink tags are appended by the jsessionid when I load the first page.
<h:outputLink value="/index">
<h:outputText value="index"/>
</h:outputLink>
Generated link: http://localhost:8080/index;jsessionid=[...]
The Java EE 7 project is using:
- primefaces 5.3
- omnifaces 2.3
- prettyfaces 2.0.12.Final
- jsf-api 2.2.6
- el-impl 2.2
- jstl 1.2
- jsp-api 2.1
If I delete the appended jsessionid and load the new page then in the cookie a new jsessionid is generated but when clicking on other links it is preserved and never changes nor it's appended in the URL.
What could cause this behavior and how could I prevent it happening? I'd like to have no jsessionid in the URL thus have only one in the cookie.