What is Session Driver in laravel ?

By | June 15, 2018

Session driver define an option where to store session data of each http request.
we can set this config/Session.php -bydefault it will be file

file – sessions are stored in storage/framework/sessions.
cookie – sessions are stored in secure, encrypted cookies.
database – sessions are stored in a relational database.
memcached / redis – sessions are stored in one of these fast, cache based stores.
array – sessions are stored in a PHP array and will not be persisted.

Click here for more interview questions