blackbird/cookie-domain-cleaner

This Magento 2 module will clean cookies from parent domains gradually while navigating on the site on a subdomain

1.0.0 2023-11-22 15:39 UTC

This package is auto-updated.

Last update: 2024-04-23 11:04:41 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