Cookie not found for authenticated user

Created on 4 May 2021, about 3 years ago
Updated 12 December 2023, 7 months ago

Problem/Motivation

The cookie condition handler does not seem to be finding cookies set for authenticated users. I added a line to dump the $cookies variable in Cookie::execute() to the db log and it was an empty parameter bag for authenticated users, but fully populated for anonymous users. not sure if that's a problem with this module of Drupal core. the $cookies variable is set by calling:

$cookies = $this->requestStack->getCurrentRequest()->cookies;

When i dump the $_COOKIES variable, all of my exepected variables for authenticated and anonymous users are present.

πŸ› Bug report
Status

Closed: cannot reproduce

Version

1.6

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States r0nn1ef

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¬πŸ‡·Greece Pavel Ruban

    I may assume that something wasn't configured correctly in regard to server settings / Drupal cookies settings, https, so Drupal / Symphony just stripped those cokkies on your end, as no one else reported the issue & I couldn't reproduce it myself I closing it for now, feel free to reopen the task if it's considered as a bug for you.

Production build 0.69.0 2024