After user is logged in, he is redirected to Login page

0
We have upgraded our version from 9.18.4 to 9.24.21.   In 9.18.4 everything is working perfect, after upgrading to 9.24.21, the cookies have changed. They are having a prefix "__Host-". Previously the session id cookie name used to be "XASSESSIONID" now its after login there are two cookies "XASSESSIONID", "__Host-XASSESSIONID". I do not understand which cookie mendix is using now for session id.   We are using a custom java login action, where we set the cookies as:   response.addCookie(Core.getConfiguration().getSessionIdCookieName(), session.getId().toString(), "/", "", -1, true); response.addCookie("XASID", "0."+Core.getXASId(),"/", "", -1, true);   Can anyone please help me with this?
asked
1 answers
1

Add another true parameter to set isHostOnly:

response.addCookie(Core.getConfiguration().getSessionIdCookieName(), session.getId().toString(), "/", "", -1, true, true);

response.addCookie("XASID", "0."+Core.getXASId(),"/", "", -1, true, true);

answered