To share Azure Spatial Anchors across sessions and devices, you will want to store your shared cloud anchor identifiers in your back-end service. Those identifiers can then be used to locate shared anchors from any device that can successfully authenticate to your service.
For shorter-term storage, cloud spatial anchor identifiers can be stored in-memory of your back-end service. The duration of time for which anchors will be stored in memory will depend on how your back-end service is set up.
For longer-term storage, you can improve your back-end service so that it uses Azure Cosmos DB (or a back-end storage solution of your choice) to persist the storage of your shared cloud anchor identifiers. Adding Azure Cosmos DB support will allow you to create an anchor today, and come back days later to be able to locate it again, by using the cloud anchor identifier stored in your service.
Source: Azure Docs