Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Accessing from the front-end

Starting with the SWAT 19.17 release, you can access the session properties from the front-end.

The new SessionContext is available by accessing akioma.sessionContext. Here the eSessionContext (SCL) and eSwatSessionContext are available. Any custom context would be available in the same object (e.g eCustomSessionContext).

The SessionContext can also be accessed from CLAPI:

akioma.swat.SessionManager.get('propertyName', 'context');
// If 'context' is not specified, default will be eSwatSessionContext.

 

Setting from the front-end

The SessionContext properties can also be updated from CLAPI using the following method:

akioma.swat.SessionManager.set('propertyName', ???propertyValue???, 'context');
// If 'context' is not specified, default will be eSwatSessionContext.

 

 

  • No labels