[5.0] Add setting to encrypt session data 

This PR supports the modification to laravel/framework in [PR 6704](https://github.com/laravel/framework/pull/6704)