Notifications
Clear all
Topic starter
A developer is writing a server side script that needs to maintain state across calls.
The persistent information needed includes these items.
• The current customer
• Whether or not the customer is authenticated
• The privacy attributes (such as tracking consent or cookie policy)
Which technique should the developer use to maintain state in an efficient and scalable manner that follows best practice?
- A . Use a non-replicable Custom Object to store the information temporarily.
B. Use the Session class in the B2C Commerce api.
C. Use an SFRA controller, because it runs server-side, the state is automatically maintained
D. Use a client-side cookie to store the information for the session duration.
Suggested Answer: B
Posted : 05/02/2023 3:33 pm