I don't think there is currently any way to set the cookie only once for multiple sites across the same domain. The cookie is set for domain/base_path. It would be nice to allow the cookie to be set for just domain/ so that it will work for all sites under the same domain.

Comments

pprasath created an issue. See original summary.

pprasath’s picture

Issue summary: View changes
pprasath’s picture

kpaxman’s picture

This is particularly useful for us since we run Drupal multi-site on a single domain.

svenryen’s picture

Status: Active » Needs review
svenryen’s picture

This patch also needs a version for Drupal 8.

liam morland’s picture

Version: 7.x-1.25 » 7.x-1.x-dev

Can we commit this in d7 and mark it to be ported for D8?

svenryen’s picture

We could try, but it wouldn't work. To avoid leaving the huge user base of D7 users behind on features, the patches are not committed until a version is written both for D7 and D8. That being said, this is a small patch, so I'll try to get it ported this week.

svenryen’s picture

Here's the patch ported to Drupal 8.

  • svenryen authored 77016ab on 7.x-1.x
    Issue #3032761 by pprasath, svenryen: Allow cookie to be set for all...

  • svenryen authored 84c9a80 on 8.x-1.x
    Issue #3032761 by pprasath, svenryen: Allow cookie to be set for all...
svenryen’s picture

Status: Needs review » Fixed

  • svenryen authored 77016ab on 7.x-2.x
    Issue #3032761 by pprasath, svenryen: Allow cookie to be set for all...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.