Skip Navigation
Expand
Storing client side session data for Knowledge Advanced Customer Portal widgets
Answer ID 10206   |   Last Review Date 07/30/2019

What is the recommendation for storing session data on the client side for Knowledge Advanced Customer Portal widgets?

Environment:

Oracle B2C Service Knowledge Advanced
Customer Portal

Issue:

The Knowledge Advanced Customer Portal widget I am building needs to cache data for better performance.

Resolution:
 
There is browser storage that is available to store data on the client.

Java Script example:

  • // Save data to sessionStorage
  • sessionStorage.setItem('key', 'value');
     
  • // Get saved data from sessionStorage
  • var data = sessionStorage.getItem('key');
     
  • // Remove saved data from sessionStorage
  • sessionStorage.removeItem('key');
     
  • // Remove all saved data from sessionStorage
  • sessionStorage.clear();

Please see Session Storage for details.

Available Languages for this Answer:

Notify Me
The page will refresh upon submission. Any pending input will be lost.