blackbird / cookie-domain-cleaner
This Magento 2 module will clean cookies from parent domains gradually while navigating on the site on a subdomain
Installs: 8 558
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 2
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- php: >=8.1.0
- magento/framework: *
- magento/module-cookie: 100.4.*
This package is auto-updated.
Last update: 2024-10-23 12:00:25 UTC
README
This Magento 2 module will clean cookies from parent domains gradually while navigating on the site on a subdomain.
Its main purpose is to allow the hosting of several environments of a site on the same domain name while avoiding cookie conflicts with subdomains.
For instance, when navigating on subdomain.my-site.com
, each time a cookie is defined, it will be deleted from my-site.com
if there are duplicates.
Installation
composer require blackbird/cookie-domain-cleaner
php bin/magento setup:upgrade
Alternatives
There are 3 ways to solve similar issues :
- Install this module
- Add a subdomain (e.g.
www
) for the production environment - Rename the
PHPSESSID
with an unique name for each environment