embedded app compatible with ITP 2.1

Hi Shopify!

I’m using PHP for my App, and I have a problem with sessions when merchant uses Safari brwoser. Session doesn’t save.
Is there any way to store sessions (cookies), so that my app will work properly?

Thanks!
Alex

Hey there,

You now need to use the Storage Access API which is provided by Apple in order to manage cookies.

I would recommend reading their blog post which outlines the recommended approach for cookie handling with ITP 2.1.

Thanks for response,

Can I use Storage Access API in PHP?
Should I use this documentation ? https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API

Thanks