Start of Content Area

Function documentation Portal and BSP Session Management   Locate the document in its SAP Library structure

Use

A BSP application is processed in the SAP Enterprise Portal by being integrated in an inner frame in an existing portal page. As a result, the BSP application can consist of several BSPs. A BSP is registered with the portal page using JavaScript: This registration of stateful applications is necessary so that the portal can inform the BSP application when it is closed.

This graphic is explained in the accompanying text

Activities

If you use HTMLB in your BSP application, you must determine that the session is managed by the portal. There are two options for this:

...

       1.      In the Web Application Builder, you activate the option Supports Portal Integration for the BSP application properties.

Note

This ID is available from SAP Web AS 6.20 Support Package 3.

       2.      Manually insert a small script in the header (between <head> and </head>) of your page layout:
<%= runtime->session_manager->header_script( ) %>

Example:

<%@ page language="abap" %>
<html>
  <head>
    <link rel=stylesheet href="../public/bc/bsp/styles/sapbsp.css">
    
<%= runtime->session_manager->header_script( ) %>
  </head>
  <body class="body1">
    …
  </body>

</html>

The current system of the BSP application is registered with the portal using both options.

Setting the ID has the following effect:

·        With the <htmlb:content> element, the attribute sessionManagement is automatically set to TRUE.
If this ID is set, attribute
sessionManagement is set by default to TRUE; if this ID is not set, the opposite applies.

·        You can now execute a runtime request with the support of session management:
runtime->session_manager->is_enabled = 1

Example

Sample coding:

if runtime->session_manager->is_enabled = 1.
  html =  runtime->session_manager->header_script_light( ). "renders the domain relaxing
  page->write( html ).

endif.

For more information see Domain Relaxing.

 

 

End of Content Area