Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use 'persistent' cookie for 'graphic content' blurring (rather than session cookie) #4189

Merged
merged 1 commit into from
Nov 9, 2023

Conversation

twrichards
Copy link
Contributor

@twrichards twrichards commented Nov 9, 2023

Turns out that Angular's $cookies library defaults to session cookies (which I didn't spot, since the extension I was using to view the cookies whilst developing showed an expiry time).

This PR adds an expires property to the cookie when setting it (set to today plus 399 days - the max expiry enforced by some browsers) and if the cookie exists it resets it every page load to effectively extend the expiry indefinitely (that also cleans-up/replaces the old 'session' cookies).

@twrichards twrichards force-pushed the graphic/default-to-on-with-tooltip branch 2 times, most recently from f55dd98 to 5edbd35 Compare November 9, 2023 16:35
@twrichards twrichards marked this pull request as ready for review November 9, 2023 16:46
@twrichards twrichards requested a review from a team as a code owner November 9, 2023 16:46
@twrichards twrichards force-pushed the graphic/default-to-on-with-tooltip branch from 5edbd35 to ce39716 Compare November 9, 2023 17:06
Copy link
Contributor

@Georges-GNM Georges-GNM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍪 👍

@prout-bot
Copy link

Seen on auth, usage, metadata-editor, thrall, leases, cropper, collections, kahuna (merged by @twrichards 8 minutes and 58 seconds ago) Please check your changes!

@prout-bot
Copy link

Seen on image-loader (merged by @twrichards 9 minutes and 6 seconds ago) Please check your changes!

@prout-bot
Copy link

Seen on media-api (merged by @twrichards 9 minutes and 18 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants