Support the ongoing development of Laravel.io →
Forms Session Requests
Last updated 2 years ago.
0

You can send CSRF token in form.

<input type="hidden" name="_token" value="{{ csrf_token() }}">

By:Xtreem Solution

Highly Skilled Laravel Developer

Dedicated PHP Developer

0

I know how to add the token field into the forms, the problem is that it expires with the session and as explained, one of the forms on my site might take long to be filled and the session might expire. I'm looking for a way to keep the session and the token alive "forever" while the user is on the page with that form.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Kumidan kumidan Joined 29 Apr 2015

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.