make sure the session id is valid
Merge pull request #5258 from arthurdarcet/array-cookie-crash

adding a `laravel_session[]=` cookie crashes laravel