Support the ongoing development of Laravel.io →
Session Configuration Laravel

I am using Laravel 5.5. I am trying to change my session driver to memcached. When i change the session driver to memcached then, on submit any form it return the Page expired exception.

The reason for the exception is Laravel generates a new CSRF token each time when the page is refreshed but the cookie is not getting updated (maybe that is right problem is in the token).

I have tried to clear my sessions, views, cache, routes, config cache and browser cookies also.

When i revert the session driver back to file then it starts working because now the CSRF token remains same when the page is getting refreshed.

Is it a bug or i am doing anything wrong in this?

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

Sahil sahilgoel755 Joined 23 May 2018

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.

© 2025 Laravel.io - All rights reserved.