It would be great to have the possibility to define how long the cookie should remain before expiration.

My suggestion is to add a setting in the admin form and pass it as JS settings so it can be used when the cookie is set.

Comments

vbouchet created an issue. See original summary.

vbouchet’s picture

Status: Active » Needs review
StatusFileSize
new3 KB
vbouchet’s picture

StatusFileSize
new2.32 KB

Sorry for the previous wrong patch which contains the entire project structure

The last submitted patch, 2: expiration_date-2728417-2.patch, failed testing.

The last submitted patch, 2: expiration_date-2728417-2.patch, failed testing.

The last submitted patch, 2: expiration_date-2728417-2.patch, failed testing.

Status: Needs review » Needs work

The last submitted patch, 3: expiration_date-2728417-3.patch, failed testing.

The last submitted patch, 3: expiration_date-2728417-3.patch, failed testing.

The last submitted patch, 3: expiration_date-2728417-3.patch, failed testing.

nikunjkotecha’s picture

Status: Needs work » Reviewed & tested by the community

Works as defined.

svenryen’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

This is a duplicate of #2364029: Configurable cookie lifetime. The feature is already in the dev-branch, and will be in the beta of 7.15.