InspiredPrynce's avatar

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!

0 likes
14 replies
ganeshkhadka's avatar

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

1 like
tisuchi's avatar

@ganeshkhadka

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
5 likes
Snapey's avatar

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

1 like
InspiredPrynce's avatar

@tisuchi i ran your command and its still happening yet... @Snapey it still happens even when i submit a normal form as well or even when i resubmit it using page reload...

Snapey's avatar

And you send csrf token? Have you checked this in the POST data?

shez1983's avatar

you need to post your code then. are you doing ajax or a simple submit form?

Cronix's avatar

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?

Snapey's avatar

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?

InspiredPrynce's avatar

I was forced to disable VerifyCSRFToken middleware! Hope it won't affect me in the future?

Please or to participate in this conversation.