Using the LC LSX to support SAP cookies

To better support working in a single sign-on environment, the connector supports SAP® cookies. The Connector property name is "Cookie".

If your SAP system is configured to work with cookies, then after a successful logon, the Cookie property is set to hold a text string (which is the corresponding cookie) for this user. You can then save this cookie as you require.
Note: If you log on to the SAP system with the Cookie property already set, you do not need to provide a user name or password. The cookie will be passed to SAPinstead of the user name and password.

Support for this feature is only available through the LC LSX .

The following sample script shows how to use this feature.

Example: Fetching a cookie

Dim target As New LCConnection("sap") 
	Dim cookie as String 
	
	target.Database = "BAPI_REQUISITION_CREATE" 
 	target.Userid = "muster" 
	target.Password = "ides" 
	target.Client="800" 
	target.Destination="IBM" 
	target.SystemNo=0 
	target.Language="EN" 
	target.Server="sapaix.lotus.com"	 
	
	target.Connect 
	cookie = target.cookie

Example: Using a cookie

Dim target As New LCConnection("sap") 
	 
	target.Database = "BAPI_REQUISITION_CREATE" 
 	target.Cookie = "Cookie string obtained from where ever ..." 
	target.Client="800" 
	target.Destination="IBM" 
	target.SystemNo=0 
	target.Language="EN"
	target.Server="sapaix.lotus.com"
	
	target.Connect