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

CSRF not refreshed #140

Open
michilehr opened this issue Oct 7, 2016 · 3 comments
Open

CSRF not refreshed #140

michilehr opened this issue Oct 7, 2016 · 3 comments

Comments

@michilehr
Copy link

Hi everybody,

at first I want to thank everybody behind this project! Awesome work.

I have a question:

A user clicks on a form, enters his data and sends the form after the session has expired. Maybe he was on the phone, closed his laptop or whatever. When he comes back, he posts the form which results in a csrf validation error.
Now the csrf token will still be the old one on the form with the error. In Symfony2, the user will have the new token so he can post the form with the data already entered.

What's your opinion on this behaviour?

Cheers Michi

@j0k3r
Copy link
Contributor

j0k3r commented Oct 7, 2016

Well, if you got time to backport the behavior from Symfony2 you can open a PR.
Or maybe you should upgrade your project to Symfony 2 :)

@michilehr
Copy link
Author

michilehr commented Oct 7, 2016

@j0k3r Thanks for your reply. This was not a feature request. I just wanted to get feedback on the behaviour :)

@alquerci
Copy link
Contributor

Hello @michilehr,

Thank you to take time to share this issue.

As a security related issue we need to be very careful about it.

Can you share us the reference on Symfony4 about this behaviour?

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

No branches or pull requests

3 participants