*/
public static final String CLEAR_WELCOME_FILES_EVENT = "clearWelcomeFiles";
+ /**
+ * Container event for changing the ID of a session.
+ */
+ public static final String CHANGE_SESSION_ID_EVENT = "changeSessionId";
+
// ------------------------------------------------------------- Properties
/**
*/
@Override
public void changeSessionId(Session session) {
+ String oldId = session.getIdInternal();
session.setId(generateSessionId(), false);
+ String newId = session.getIdInternal();
+ container.fireContainerEvent(Context.CHANGE_SESSION_ID_EVENT,
+ new String[] {oldId, newId});
}
Ensure response is committed when <code>AsyncContext#complete()</code>
is called. (markt)
</fix>
+ <add>
+ Add a container event that is fired when a session's ID is changed,
+ e.g. on authentication. (markt)
+ </add>
</changelog>
</subsection>
<subsection name="Coyote">