session compatibility with symfony 2.3

In symfony 2.1 the session has been refactored and should be used via the flashbag introduced. The old behavior will be removed in 2.3 and is currently considered deprecated.

Reference: https://github.com/symfony/symfony/blob/master/UPGRADE-2.1.md#session

This commit will BC with symfony 2.0.