Session Management Integration

In runtime, Unica Interact uses session to keep the state of user inbound interactions. Also BTT has powerful session management. So we can leverage BTT session management to provide seamless session management integration between Unica Interact and BTT.

After a user logs into BTT application, BTT creates BTT session and BTT session context. In the LoginVerification Operation of Business Template, the Unica service is created and BTT session ID and user ID is used as the input parameter of the startSession method of Unica Marketing Service.

BTT uses session context to keep the data and referenced service for a login user. The following is the session context definition in Business Template.

The sessionCtx will chain to branchServer root context in runtime. So the session context can refer the Unica Marketing Service and get the singleton instance of service for current session by following code: getContext().getService("unicaDemoService").

The unified session ID is stored in the BTT session context, so when BTT application wants to retrieve an offer in some contact point of a specific page, user can use the following JSP code to get offer (Please refer unica.jsp of Business Template).