Can you post the code snippets at http://laravel.io/bin and share it here. maybe some experts can look into it. ;)
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?
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?
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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community