Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ilkinium's avatar

TokenMismatchException when session driver is database - L 5.2

Hi everyone, I have problems with TokenMismatchException in VerifyCsrfToken.php in Laravel 5.2. my session driver is set to database, i've generated session table (laravel's standart session table - generated with: php artisan session:table). when i switching session driver to file - everythink is working normally. And i don't why, but Laravel generates 3 new session id(in db) each time when i refresh the page. has anybody had this kind of problem?

0 likes
1 reply

Please or to participate in this conversation.