Get (custom) cookie name where the session id is stored in Java

0
In the OAuth module, the cookie name where the session id is used to log in the user. However, this name is hard-coded in LoginHelper.java:27 like this: private static final String XAS_SESSION_ID = "XASSESSIONID"; In the Runtime settings, you can customize this to use something else (see below). Now the question: how can you retrieve this custom setting in Java such that I can update the OAuth module to use this customized setting? com.mendix.core.SessionIdCookieName Defines the name of the cookie value which represents the session id. Can be useful to change when running in a container which assumes a certain name for the session cookie (e.g. Pivotal assumes ‘JSESSIONID’ as session cookie name).  
asked
1 answers
1

From the APIDocs, it seems that

 

Core.getConfiguration().getSessionIdCookieName()

holds what you are looking for.

answered