Set cookie path to the root folder of Drupal installation

Created on 30 May 2017, about 8 years ago
Updated 3 July 2025, 12 days ago

Problem/Motivation

We had an issue setting cookies to for a Drupal installation in a subfolder ( folder/drupalroot).
This is something that the user can manually change in the config page of the module.
In our case, most of our installations are in a subfolder, and each subfolder has a different name , so we want the subfolder name to be the default value of the cookie path field instead of (/)

Proposed resolution

We need to change the default value of the cookie path field from (/) to base_path()

Remaining tasks

Create a patch ..in progress

🐛 Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

🇧🇪Belgium Orabi Gent

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