cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From micleva <Valer-Ioan.MI...@ext.ec.europa.eu>
Subject Re: can't disable session support (JSESSIONID is always created)
Date Tue, 11 Aug 2015 09:47:22 GMT
Just in case someone is interested about the solution.. in fact it has
nothing to do with CXF

The problem appears due to how HttpConnection works. It uses a cookie
manager which manages the cookies for each connection.

The simplest solution is to define your own cookie manager and to set it as
default cookiemanager at init time:
CookieManager.setDefault(MyCookieManager.init());

Now you will get full control over what cookies are sent for what
connection.

Hope this helps someone else as well.
Cheers



--
View this message in context: http://cxf.547215.n5.nabble.com/can-t-disable-session-support-JSESSIONID-is-always-created-tp5759638p5759947.html
Sent from the cxf-user mailing list archive at Nabble.com.

Mime
View raw message