Apparently every key I save to a Symfony2 session goes under a subkey:
$session->set(\'foo\', \'bar\');
Will result in:
arra
This is not only the handler that you have to implement on your own, but it also should be your SessionStorage
.
By default, Symfony2 uses NativeSessionStorage
. You should be looking for the method loadSession(). As you can see, it initializes a session with the $key
received from getStorageKey()
, which is initialized with _sf2_attributes
here - in the AttributeBag
Let me know if you have problems injecting custom session storage.