SQLiteSessionStorage reset after restarting app server

SQLiteSessionStorage reset after restarting app server

arpit211090
Shopify Partner
2 0 0

I've developed a Shopify custom app. In the app, I've included a cronjob to retrieve session storage data for the access token and shop name. I use this data to fetch Shopify orders. However, after deploying the app, if the app server restarts, the session storage becomes null, causing the cronjob to fail.

Reply 1 (1)

BSSCommerce-B2B
Shopify Partner
1972 564 561

Hi @arpit211090,

Did you try afterAuth to extract accessToken and shop from session and save it to somewhere not sqlitesessionstorage, and use it to make api call. access token is permanent until uninstall, i think

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now