Support the ongoing development of Laravel.io →
posted 9 years ago
Session
Last updated 2 years ago.
0

Are you using laravel 4.2 or 5.0?

Last updated 2 years ago.
0

The newest 4.2

Last updated 2 years ago.
0

Try a regular session to see if it works:
In controller set something: $mytest = "working";

Session::put('mytest', $mytest);

And in view see if it works:

echo Session::get('mytest');

or use blade.

Last updated 2 years ago.
0

Forgot to mention, make sure that app\storage folder has proper permissions.

Last updated 2 years ago.
0
Solution

jimgwhit I wrote I test this and it work only if controller not return view object, permissions should also don't have anything with it because I test it on windows and also with cookies that not need any permission.

However, I found finally were I've got a bug, it was because in layout that I extend in my view has

<?php flush();?>
Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

geding geding Joined 14 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.