-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Info about implicit session start #5664
Conversation
This should be explained *somewhere* (took me a while to figure it out). If this is not the right place (or format), please go ahead and correct it!
I think it's a good idea to explain it here. Though I would rather put it in a caution block to make it more visible: .. caution::
Since the token is stored [...] |
OK, sure! Would you help me? On http://symfony.com/doc/current/components/http_foundation/sessions.html it says: "While it is recommended to explicitly start a session,...", this didn't work for me when using a form. So the open questions are:
Cheers, |
Oh, it's quite easy. Just replace the paragraph you added with the following markup: .. caution::
Since the token is stored in the session, a session is started automatically
as soon as you render a form with CSRF protection. That's it. :) |
@xabbuh: Please write some additional details about my questions above - I don't know the answers ;-)
👍 |
Thank you Thomas. |
This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #5664). Discussion ---------- Info about implicit session start This should be explained *somewhere* (took me a while to figure it out). If this is not the right place (or format), please go ahead and correct it! Commits ------- 662bb01 Info about implicit session start
This should be explained somewhere (took me a while to figure it out). If this is not the right place (or format), please go ahead and correct it!