Java Integration Kit

Processing logout requests

An example code snippet for processing a logout request and sending it back to PingFederate through the user’s browser.

request.getSession().invalidate();
String returnUrl = "https://<PingFederate DNS>:9031" + request.getParameter("resume");
response.sendRedirect(returnUrl);