php - multiple session files are created on each request in laravel 5.2.* -
currently i'm working laravel 5.2.29. on each request new session file generated , old file not deleted.
config/session.php file
<?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, 'http_only' => true, ];
i put routes inside middleware group 'web'
route::group(['middleware' => ['web']], function () { //login route::post('login', 'user\logincontroller@login'); });
why happens? how solve problem?
i have tried changing cookie name, previuosly in laravel 5.2.23 works fine downgrade project laravel 5.2.23 , tried not working.
someone me out solve this.
remove route::group , should remove duplicates. old session files, cleaned after time. leave alone.
Comments
Post a Comment