symfony/symfony — pull request #2541 by drak (2011-11-02 09:09:33+00:00)
Title: Added structured namespacing to session attributes.

Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -

Symfony's session class works well for simple applications, for complex systems with multiple components/modules all working together (think Drupal, Zikula etc), then there can easily be session attribute clashes.

This patch introduces structured namespacing which allows deep storage according to the namespace. Namespaces are expressed using paths, e.g. `/users`, or `/users/permissions` and this translates into a structured array of data, which is obviously returned when using `get()` and the namespace.

I have also taken the opportunity to complete the docblocks for the session class' properties which greatly assists programming when using an IDE.