Show TOC

Adding SAP Web Dispatcher Logout RulesLocate this document in the navigation structure

When using other systems that are integrated with SAP Fiori launchpad, after logging out, an open browser window may still contain session cookies. A user who has access to the open browser window can access these systems without having to authenticate. SAP Web Dispatcher logout rules are used with a custom logout page to make sure that all system sessions are closed when logging out of SAP Fiori launchpad.

Such a rule leading to a login may look as follows for the scenario where SAP Gateway is not on the front-end server in the SAP Web Dispatcher profile file sapwebdisp.pfl:

wdisp/system_<rule number> = SID=<Gateway System ID>, EXTSRV=https://<server host and port>, SRCSRV=*:<Fiori Launchpad port>, SRCURL=/sap/opu/odata/
For a corresponding logout rule, it is recommended to use a URL segment parameter to be able to distinguish several systems of the same platform which have the same logout URL:
  1. Create a text file and name it modification_rule.txt.
  2. Add a corresponding modification rule to the file you created in step 1, for example:
    if %{PATH} regimatch ;o=<Gateway System ID> 
    SetHeader x-sap-webdisp-target-sid <Gateway System ID> [break]

    Replace <Gateway System ID> by the system ID (SID) of your SAP Gateway system.

  3. Add this modification rule file to the file sapwebdisp.pfl using the following path:
    icm/HTTP/mod_<number> = PREFIX=/,FILE=modification_rule.txt 
For the scenario where the SAP HANA system is accessed via OData but not used to load remote catalogs, both the rule leading to login and the modification rule for logout look quite similar:
Note The parts specific to SAP HANA are marked below in bold.
wdisp/system_<number> = SID=<HANA System ID>, EXTSRV=https://<server host and port>, SRCSRV=*:<Fiori Launchpad port>, SRCURL=/sap/bi/;/sap/hana/;/sap/ui5/;/sap/vi/;/sap/viz/
if %{PATH} regimatch ;o=<HANA System ID> 
SetHeader x-sap-webdisp-target-sid <HANA System ID> [break]

Replace <HANA System ID> by the system ID (SID) of your SAP HANA system.