Check out this issue https://github.com/laravel/framework/issues/8172
May 30, 2015
5
Level 2
L5.1 Cookie session failing
Hi all, I am migrating a 4.2 site to 5.1 and I am having trouble storing session data using the cookie driver.
I am passing form validation errors in the session for display on the front end, the problem is this doesn't work at all for the cookie driver. If I switch to a file driver everything works perfectly.
Is there a known change in behaviour or perhaps a bug which might be causing this to fail?
If I dump out the contents of the session I get the following but I can't add any of my own data to it.
Array ( [_token] => FTWmSVLUuUndscAKu0iohd7JSSbG1IeBO6rSSHi8 [_previous] => Array ( [url] => https://bbms.buildbrighton.dev/password/forgotten ) [flash] => Array ( [old] => Array ( ) [new] => Array ( ) ) )
Anyone got any advice?
I had to go straight to 5.1 because I needed middleware parameters
Please or to participate in this conversation.