Cannot read session variable

New Member
2 0 0

I'm building Shopify App using Python(Flask framework). On post-installation, I create a session variable as below and then redirect to my app main page


session['current_profile_id'] = my_profile_id_value


 From my app, I try to read the value but always got None which means the session variable was somehow not set.




Can I use sessions to share data across my app? 

Replies 2 (2)
Shopify Partner
5581 641 1504

Hii @n2,
I hope this link is helpful for you. 

Thank You.

New Member
2 0 0

My app is an embedded app so it is loaded inside an iframe from Shopify admin. It seems that the session cannot be used in Iframe.

There is a report here someone facing the same issue: