The native session drivers not require any additional setup. It does not use cookies to store data. Native session drivers use native php mechanism for store session. It use 'NativeSessionStorage.php' for store data.
By using Native session driver we do not required additional setup.
Laravel is using laravelApp/vendor/symfony/http-foundation\Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php for this
We can set session drivers in 'app/config/session.php'
return [
'driver' => env('SESSION_DRIVER', 'file'),
'lifetime' => 120,
'expire_on_close' => false,
'encrypt' => false,
'files' => storage_path('framework/sessions'),
0 Comment(s)