I believe your solution will be there @InspiredPrynce https://stackoverflow.com/questions/46141705/the-page-has-expired-due-to-inactivity-laravel-5-5
Page Has Expired Due To Inactivity
I get page expired due to inactivity whenever i upload a file. Please whats wrong with my storage folder and how do i fix it?
Thanks!
No worries about this issue.If you are running in chrome then simply press ctrl+shft+i .There you can see the inspect.Then simply hard reload the page.For this simply press ctrl+shft+R. and run your url. It works for me. Thanks
It's a cache issue then.
For future reference, I just add some command here.
composer dump-autoload
php artisan optimize
php artisan cache:clear
php artisan config:clear
php artisan route:clear
php artisan view:clear
@tisuchi Yes those command are useful in every case.
If you have not solved it, it can be caused by uploading a file that is too large for the limits set in php.ini for max post size and max upload.
This will be confirmed if you only get this error above a certain file size
And you send csrf token? Have you checked this in the POST data?
you need to post your code then. are you doing ajax or a simple submit form?
Have you checked your error logs? Something might be getting logged before it triggers that error. Do your sessions work elsewhere? Like do you have other forms using csrf that work ok but this one doesn't?
OK, let me understand
@csrf is included on every form, and sessions are working well
Sounds perfect, what could be problem then???
You want us to guess because you are not willing to test anything?
I was forced to disable VerifyCSRFToken middleware! Hope it won't affect me in the future?
Please or to participate in this conversation.