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

Custom cookie duration based on consents #78

Open
gtnsimon opened this issue Jan 12, 2022 · 1 comment · May be fixed by #79
Open

Custom cookie duration based on consents #78

gtnsimon opened this issue Jan 12, 2022 · 1 comment · May be fixed by #79
Assignees

Comments

@gtnsimon
Copy link
Contributor

To offer more control to developers on how cookie duration is managed based on user consent, is it possible to allow cookieExpiresAfterDays to be a function ?

This function could take 2 arguments:

Motivations

I'm working with orejime on general public websites which requires this kind of behavior especially for users who click decline on Notice or decline all on Modal. It is a pure business needs but it gives more control than a static value.

@gtnsimon gtnsimon linked a pull request Jan 12, 2022 that will close this issue
@gtnsimon gtnsimon changed the title Custom cookies expiration duration based on consents Custom cookie duration based on consents Jan 12, 2022
@felixgirault
Copy link
Contributor

This seems like a legit use-case, thank you for the PR.
I just made some small requests for adjustments, let me know what you think.

@felixgirault felixgirault self-assigned this Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants