Web Developer
Understanding check:
createAnonymousSession() registers the session with the backend
setSession() creates a cookie on the user’s computer(?)
getSession(‘current’) retrieves that cookie so that the user can pick up where they left off(?)
So I would call getSession(‘current’) on load, and if it fails I create and set a session so it doesn’t fail the next time the user visits. Is that correct?