Merge pull request #13975 from AwsAqh/fix/session-cookie-domain-13974

Fix shared login sessions between staging and production
This commit is contained in:
Ahmed Ejaz
2026-03-14 17:22:28 +05:00
committed by GitHub

View File

@@ -5,7 +5,7 @@
# (create the session table with "rails generate session_migration")
domain = if Rails.env.staging? || Rails.env.production?
".#{ENV['SITE_URL'].gsub(/^(www\.)|^(app\.)|^(staging\.)|^(stg\.)/, '')}"
ENV['SITE_URL']
else
:all
end