Implementing signout for ADF web application

If you are not using UIShell template then you will have to implement the signout mechanism on your own which will take care of terminating the current ApplSession etc.
Here is the code snippet you can refer to -

Internally, the call to logoutApplSession() does some extra cookie processing , session attribute removal and eventually calls terminateSession().
terminateSession() - This does the actual job of session detachment and finally the session destruction.