Shopify / Shopify/shopify-app-template-php

Session Data Not Being Stored in the Server Database Upon App Installation

Open
#525 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
340
Forks
108
PR merge metrics
No merged PRs in 30d

Description

I have updated my .env file and configured the DB_CONNECTION as follows:

APP_NAME="Essential Trust Badges & Icons Dev"
APP_ENV=production
APP_KEY=**********
APP_DEBUG=true

LOG_CHANNEL=stack
LOG_LEVEL=debug

DB_CONNECTION=sqlite

DB_CONNECTION=mysql
DB_HOST=************
DB_PORT=****
DB_DATABASE=************
DB_USERNAME=************
DB_PASSWORD=************

The path to the database file should be absolute; ensure it is updated accordingly.

DB_DATABASE=storage/db.sqlite

DB_FOREIGN_KEYS=true
SESSION_DRIVER=database

SHOPIFY_API_KEY=""
SHOPIFY_API_SECRET="
****"

However, after deploying the application on the server and installing it in my store, the session data is not being stored in the session table in the server database.
Could you please assist me in identifying the issue and provide potential solutions?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report only identifies the deployed .env configuration and the server database's session table; it names no source file or test. Start by verifying that the deployed configuration is loaded and that the configured database contains the session table, then trace the installation flow. Done means session data is stored in the server database after installation.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, php
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.