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. |
See how to work with session properties from the back-end here.