Skip to content

Adminhtml - Too many mage-translation-file-version cookies #27355

Closed
@ihor-sviziev

Description

@ihor-sviziev

Preconditions (*)

  1. Magento 2.3.4 or 2.4-develop
  2. Enable "Add Secret Key to URLs" in Stores > Configuration > Advanced > Admin > Security (enabling this option recommended for production env, it increases issue reproducing)

Steps to reproduce (*)

  1. Login into the admin
  2. Go to few different pages
  3. Open Chrome developer console, Network
  4. Refresh the page
  5. Select "document" request, see "Cookies" tab on the right side
  6. check "show filtered out request cookies"
  7. See list of cookies

Expected result (*)

  1. Maximum one cookie mage-translation-file-version and mage-translation-storage should be created

Actual result (*)

  1. Almost for all admin URLs were created separate cookie mage-translation-file-version and mage-translation-storage because each of them has own path:
    image

Additional info

After some time of navigation on the admin and frontend - browser reaches limit per domain (in chrome 180 cookies per domain) and drops older cookies. In my case it started dropping 2fa auth cookie, and I have to put 2fa code all the time when I log in into the admin

Metadata

Metadata

Assignees

Labels

Component: CookieFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Progress: doneReported on 2.3.4Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S2Major restrictions or short-term circumventions are required until a fix is available.Triage: DoneHas been reviewed and prioritized during Triage with Product Managers

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions