Expiration to 0 doesn't create session cookie

Created on 23 February 2023, almost 2 years ago
Updated 19 March 2024, 9 months ago

Problem/Motivation

I need the cookie (default as cookiesjr) become session cookie. So i set the Expiration to 0.

Steps to reproduce

  1. Set in the configuration of COOKiES module the field Expiration to 0.
  2. Download and install Firefox plugin "Cookie Quick Manager" so to inspect cookies.
  3. After visiting the website and press DENY ALL button in cookies banner, a cookie is created but with expiration date one month(??) later. I send a relative screenshot.

Proposed resolution

Based on Set-Cookie documentation https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie about the Expire option, I copy paste from there

If unspecified, the cookie becomes a session cookie. A session finishes when the client shuts down, after which the session cookie is removed.

So maybe a solution would be if the Expiration field was 0 to not include this option at all?

🐛 Bug report
Status

Fixed

Version

1.2

Component

Code

Created by

🇬🇷Greece perarg

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024