-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Retrieving cookie from AJAX http redirect #1
Comments
I don't know. Can you post exactly how you're setting and retrieving the cookie (the actual code)? |
There is a guest entry submission with AJAX POST and redirect at the end. AJAX post
Redirected page
Than
So when an entry is submitted and I get to redirect page destination the cookie |
Such rookie mistake. I had cookies variables defined after |
Yeah that makes sense: https://nystudio107.com/blog/twig-processing-order-and-scope |
Retrieving a cookie upon successful AJAX entry submission with http redirect (a cookie is set on redirect page - submitted entry) won't update correct value except manual page refresh.
On the redirected page I'm checking a value variable against the retrieving cookie which gives me the expected result but the cookie doesn't give me expected result when I retrieve it somewhere else in other templates. Except page refresh.
Why?
The text was updated successfully, but these errors were encountered: