Skip to content

Conversation

Debatty-Tom
Copy link
Contributor

The issue #88 report that the cookie consent state was not being saved correctly when running Laravel 11 with Octane, something caused by Laravel Octane comportement. I added this to help people in the same use case.

Copy link
Member

@toonvandenbos toonvandenbos left a comment

Choose a reason for hiding this comment

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

Maybe add other frequently asked questions?

## FAQ

<details open>
<summary>If you use Laravel Octane with Laravel 11</summary>
Copy link
Member

Choose a reason for hiding this comment

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

Please rephrase as a question.

<details open>
<summary>If you use Laravel Octane with Laravel 11</summary>

It optimizes your application by storing requests in RAM. Some reports mention that you need to flush the cookieConsent class to ensure it correctly saves the consent value, like so in your config/octane.php:
Copy link
Member

Choose a reason for hiding this comment

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

"It" is not a clear answer. Please add more context.

Copy link
Member

Choose a reason for hiding this comment

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

Also:

Some reports mention that you need to flush the cookieConsent class to ensure it correctly saves the consent value, like so in your config/octane.php:

...does not sound like a real answer.

Maybe something like (please check typos):

In order to reset the cookies setup for each incoming Octane request:
1. Make sure the [insert cookie names] cookies are not encrypted
2. Add the following items to the flushed dependencies in `config/octane.php`:

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 this pull request may close these issues.

2 participants