php - Session in Laravel 5.4.3 doesn't works -
i have problem session in laravel , in localhost works fine , in shared hosting (webhostingworld) dosen't work same code. code in 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', 'store' => null, 'lottery' => [2, 100], 'cookie' => 'laravel_session', 'path' => '/', 'domain' => '', 'secure' => env('session_secure_cookie', false), 'http_only' => true, ];
this code in web.php
route::get('/put',function(){ session::put('test','testing'); return session::get('test'); //here returning testing }); route::get('/get',function(){ return session::get('test'); //but here return empty result });
server php version 5.6.31 , ssh access not possible shared host
Comments
Post a Comment