Configure WildFly/Undertow to put JSESSIONID on URL if cookies not accepted -
we used jboss 7.1.2 , utilized behaviour jsessionid put on url fallback if cookies not accepted or if jsessionid cookie not present in requests.
after migrating wildfly 8.2.0 / undertow 1.1.0 url rewrite not happening.
is possible configure wildfly/undertow put jsessionid on urls fallback? aware of possibility put session-config in web.xml
, e.g.:
<session-config> <tracking-mode>url</tracking-mode> </session-config>
but want jsessionid on urls fallback solution.
to use cookie based session-tracking if available , url based session-tracking fallback should configure deployment descriptor web.xml
this:
<web-app ...> <session-config> <tracking-mode>cookie</tracking-mode> <tracking-mode>url</tracking-mode> </session-config> </web-app>
note, need @ least servlet 3.0 specification!
unfortunately there bug (undertow-396) in wildfly/undertow prevents fallback being used. bug has been marked fixed undertow 1.2.0-beta10, wildfly 8.1.0.final , 8.2.final both use older versions. you'd need update undertow in wildfly installation fix.
here useful blog-post on topic.
update: wildfly 9.0.2.final uses undertow 1.2.9, should working again (not yet tested).
Comments
Post a Comment