Logoff / Logout of a BSP
For many of you who struggled with session management on your custom BSP Applications look no further. Thanks to the Fiori landscape we now have a simple approach to killing the SAP session without having to go to the trouble of manually killing session cookies!
Activate the following ICF node
Create a hyperlink in your custom application to hit this server node:
When you hit the logoff link in your application you will see the following:
For extra brownie points
If you are like me and dread seeing screens like the on shown above then you might want to create a redirect to a more application specific page, do the following.
1. Create an external Alias and point it to the Logoff ICF node.
2. In the error pages create a redirect to your custom logoff page, (Note: this page must be hosted somewhere public unless you are going to redirect back to your applications login screen)
Thanks and happy development.