IBM BPM, V8.0.1, All platforms > Customize and rebranding interfaces > Customize Process Portal > Customize Process Portal spaces > Customize banners > Customize banner elements and appearance > Create custom logout behavior

Loading a custom web page in a Process Portal space at logout

If you want to run custom code at logout, for example, to clean up browser cookies, you can use the administrative console to specify a different web page to load when a user logs out.

You must have administrator privileges to complete this task.

When a user logs out of the space, the browser is directed to the page specified by the com.ibm.mashups.url.logout property in the ConfigService.properties file.

If you customize the logout behavior to load a custom page, the custom page is loaded after all of the widgets have been unloaded. After the cleanup code runs, the browser is redirected to the default logout page (/mum/logout) to confirm that the user successfully logged out of the space.


Procedure

  1. Locate the ConfigService.properties file.

    For a stand-alone server:

    profile_root/BusinessSpace/node_name/server_name/mm.runtime.prof/config
    For a cluster:
    dmgr_profile_root/BusinessSpace/cluster/mm.runtime.prof/config
  2. Change the value of the com.ibm.mashups.url.logout property to include the URL for the web page you want loaded when a user logs out of the space.

  3. Run the updatePropertyConfig command using the wsadmin scripting client to update the configuration.

    • For a stand-alone server:

      The following example uses Jython:

      AdminTask.updatePropertyConfig('[-serverName server_name -nodeName node_name -propertyFileName "profile_root/BusinessSpace/node_name/server_name/mm.runtime.prof/config/ConfigService.properties" -prefix "Mashups_"]')
      
      AdminConfig.save()
      The following example uses Jacl:
      $AdminTask updatePropertyConfig {-serverName server_name -nodeName node_name -propertyFileName "profile_root/BusinessSpace/node_name/server_name/mm.runtime.prof/config/ConfigService.properties" -prefix "Mashups_"} 
      $AdminConfig save

    • For a cluster:

      The following example uses Jython:

      AdminTask.updatePropertyConfig('[-clusterName cluster_name -propertyFileName "dmgr_profile_root/BusinessSpace/cluster_name/mm.runtime.prof/config/ConfigService.properties" -prefix "Mashups_"]')
      
      AdminConfig.save()
      The following example uses Jacl:
      $AdminTask updatePropertyConfig {-clusterName cluster_name -propertyFileName "dmgr_profile_root/BusinessSpace/cluster_name/mm.runtime.prof/config/ConfigService.properties" -prefix "Mashups_"} 
      $AdminConfig save

Create custom logout behavior in Process Portal spaces