Support the ongoing development of Laravel.io →
posted 10 years ago
Security
Last updated 2 years ago.
0

Can you post the code snippets at http://laravel.io/bin and share it here. maybe some experts can look into it. ;)

Last updated 2 years ago.
0

sivaganeshsg said:

I'm using a form in my project and the CSRF token is the same every time I load/reload the page.

Even I tried manually have a CSRF token, but no success.

I think (could be wrong) Laravel generates the token once per session rather than per page load.

If you close your browser and reopen (start a new session) do you get a different token?

Last updated 2 years ago.
0

No use. Tried restarted PHP ARTISAN SERVE, same token key.

Even changed the --port=8080 and check, still the same.

elite123 said:

sivaganeshsg said:

I'm using a form in my project and the CSRF token is the same every time I load/reload the page.

Even I tried manually have a CSRF token, but no success.

I think (could be wrong) Laravel generates the token once per session rather than per page load.

If you close your browser and reopen (start a new session) do you get a different token?

Last updated 2 years ago.
0

sivaganeshsg said:

No use. Tried restarted PHP ARTISAN SERVE, same token key.

Even changed the --port=8080 and check, still the same.

elite123 said:

sivaganeshsg said:

I'm using a form in my project and the CSRF token is the same every time I load/reload the page.

Even I tried manually have a CSRF token, but no success.

I think (could be wrong) Laravel generates the token once per session rather than per page load.

If you close your browser and reopen (start a new session) do you get a different token?

Restarting the server etc isn't the issue that he brings up. Try clearing your cookies for the site.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.