Skip to content

Commit

Permalink
Set cookie domain if configured on ignore cookie
Browse files Browse the repository at this point in the history
fix #15778 

tracker cookie name and path was already set, but not the cookie domain.
  • Loading branch information
tsteur authored Jun 26, 2020
1 parent 7145037 commit b53e10c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/Tracker/IgnoreCookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ public static function getIgnoreCookie()
public static function setIgnoreCookie()
{
$ignoreCookie = self::getIgnoreCookie();

$domain = TrackerConfig::getConfigValue('cookie_domain');
if (!empty($domain)) {
$ignoreCookie->setDomain($domain);
}

if ($ignoreCookie->isCookieFound()) {
$ignoreCookie->delete();
} else {
Expand Down

0 comments on commit b53e10c

Please sign in to comment.