D
D
Dinar Garipov2014-01-24 00:17:45
Laravel
Dinar Garipov, 2014-01-24 00:17:45

Laravel 4.1 Why is CSRF protection not working after upgrade?

Updated from 4.0.3 to 4.1.
And after that the csrf filter started to issue token mismatch. Although I check that the token is in the form, the filter receives it. But the session already has another token.
It changes even before the filter is triggered.
Route is correct.

Route::post('login', array(
            'before' => 'csrf',
            'uses' => '[email protected]'
        )
    );

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2014-01-24
@xelam

and what are the settings in session.php?

'lifetime' => 120,

'expire_on_close' => false,

Did you update according to the instructions?
laravel.com/docs/upgrade

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question