Deprecate user_cookie_save() and user_cookie_delete()

Created on 28 October 2015, over 9 years ago
Updated 23 February 2023, about 2 years ago

Problem/Motivation

Poking around I found this issue: #1671194: Add missing user_cookie_load() function โ†’

Researching it led me to understand that we have two cookie systems in Drupal 8: The one left over from D7 and the one provided by Symfony.

user_cookie_save() is only called in one place.

user_cookie_delete() is not used at all and is dead code.

Proposed resolution

We should normalize on Symfony's cookie handling, and have contrib do the same: $response->headers->setCookie(new Cookie('foo', 'bar'));

Delete user_cookie_save() and user_cookie_delete().

Remaining tasks

Change notice.

User interface changes

API changes

Data model changes

๐Ÿ“Œ Task
Status

Needs work

Version

10.1 โœจ

Component
Otherย  โ†’

Last updated about 1 hour ago

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States mile23 Seattle, WA

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.

Production build 0.71.5 2024