...
Configuring the Web app
As already mentioned in the best practices section, when proxying through app manager, the webapps should a best practice, Web apps should not contain any hard-coded resource paths . Same applies for log out URLs. If when proxying through WSO2 App Manager. Similarly, if the resource path configured for the logout action of your web Web application is absolute, the app manager gateway would be by passed and WSO2 App Manager by-passes the gateway and invokes the direct URL, would be invoked, if this is the case, the and the action sequence for single logout will is not be triggered.
A sample Therefore, the logout link configuration with in a JSP page of the Web app should contain a relative reference on a JSP page, is as as follows.
<li><a href=<% out.println(".?action=logout"); %>>Logout</a></li>