I am using Laravel 5.1
Its working perfectly on localhost. But when I try to login it returns the error,
TokenMismatchException in VerifyCsrfToken.php line 53:
When I remove CSRF
token by commenting 'App\Http\Middleware\VerifyCsrfToken',
In app/Http/Kernal.php
. But after this it redirect to login page itself without session.
I also checked config/session.php
,
session.php
<?php
return [
'driver' => env('SESSION_DRIVER', 'file'),
'lifetime' => 120,
'expire_on_close' => false,
'encrypt' => false,
'files' => storage_path('framework/sessions'),
'connection' => null,
'table' => 'sessions',
'lottery' => [2, 100],
'cookie' => 'laravel_session',
'path' => '/',
'domain' => null,
'secure' => false,
];
The storage
and autoload
folders are also writable.
Any Idea ?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire