One reason this can happen is if you created sessions table manually and made the mistake of making id column of type bigint(20) or any other mismatching column. Check my detailed answer here https://stackoverflow.com/a/45340647/7260022
Jan 21, 2016
1
Level 4
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?
Please or to participate in this conversation.