As always: it depends. In My opinion the file driver should be the better choice. The disadvantage of using the database driver could be SQL server load whereas file access should be faster. Last but not least RAM is the fastest way of storing and accessing data.
Depends on your setup (a lot). Maybe you have multiple servers and a DB server, for that you'd want to use the DB to keep sessions across all servers.
I use the DB option just because my site isn't that big (500 unique a day). It also provides me with easy access to all the users logged in from a time period so I can track stuff.
May You Show me How you did it in 4.2 maybe i can make it work in 5.1
Do You Have an DatabaseSessionHandler and SessionServiceProvider?
Session table?
Can You Share How you do it?
Coz i might be missing something in my Code.
@bashy i am using Laravel 5.0 and i am also using multiple server of amazon dynamic auto i am facing the session issue on multiple servers of amazon.
because each time the request is sent to a different server.
So i get a TokenMismactch Exception laravel 5.0.
I am using a file base session driver.
What i want to know is that will changing my driver to database will also resolve the TokenMismatch Error because i am using CSRF protection..
@usamamashkoor You will need to use session driver as the database. You might be using file diver so once your user visits your website session will be stored in the file on that server. But If website load increases then load balancer will send the request to another server which will log the user out of the system. The different server can access database not single file.