Namespaced Sessions

Permalink 1 user found helpful
Has one of you managed to get namespaced sessions to work in C57?

Session::set('sm/filters/country', ['data']);
$filters = Session::get('sm/filters'); //shows null

View Replies:
MrKDilkington replied on at Permalink Reply
Hi A3020,

Have you tried something like this instead of using Session directly?
$session = Core::make('app')->make('session');
A3020 replied on at Permalink Reply
Hm, after some more testing I don't think it's possible with the current implementation in C5. Thing is that the 'bags' need to be registered before the session starts.

And the current session bag is using AttributeBag instead of NamespacesAttributeBag.

I'll post an issue on Github to see what the others think about it.