JetBrains / JetBrains/xdebug-extension

Chrome version adds cookie to parent domain

Open
#52 0 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
JavaScript
Stars
137
Forks
15
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
When enable Debug mode (haven't tried other modes) in Chrome v148.0 (Mac) the domain for the cookie is set to wildcard of parent domain. After page reload a 2nd cookie with domain is then set correct to the domain being accessed, but also includes the cookie for the wildcard of parent domain, thereby 2 cookies are set. This 2nd cookie is likely set by PHP on the site.

When disable Debug mode the cookie for the current domain is removed but the cookie for domain of wildcat parent remains and must be manually removed.

In Firefox v140.11 (Mac) initially enabling Debug mode does not set cookie domain to wildcard of parent domain.

**To Reproduce**
Load page from site xxx.yyy.zzz
View cookies stored in browser
Enable Debug mode
View cookies stored in browser will see domain for XDEBUG_SESSION cookie is set to ".yyy.zzz" (wildcard parent domain)
Reload page.
View cookies stored in browser, will see 2 XDEBUG_SESSION cookies.
Disable Debug mode
View cookies stored in browser, will see 1 cookie with domain set to ".yyy.zzz"

**Expected behavior**
Enable Debug mode should not set cookie domain as wildcard of parent domain.

**Screenshots**
Not needed

**Desktop (please complete the following information):**
- OS: Mac OS
- Browser Chrome v148.0, Firefox v140.11
- Version [e.g. 22]

**Smartphone (please complete the following information):**
None tested

**Additional context**
Have not tested other browsers.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.