Cookie life time is always 100 days

Created on 26 September 2022, over 2 years ago
Updated 17 September 2024, 4 months ago

Problem/Motivation

In one of the previous patches, in calls to the createCookie() function in the simple_popup_blocks.js file, the cookie_days argument was replaced with the value 100. As a result, no matter what Cookie expiry value is set in the module settings, cookie is always created with a lifetime of 100 days.

Steps to reproduce

1. Add e new simple popup block to a page. Set a Cookie expiry value in the block settings other than 100:

2. Check that a new cookie is created with a lifetime of 100 days:

Proposed resolution

In calls to the createCookie() function, replace the value 100 with the cookie_days variable.

Remaining tasks

Add a patch.

User interface changes

No interface changes are expected for this issue.

API changes

No API changes are planned for this issue.

Data model changes

No data model changes are expected.

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine shoroshanska

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