symfony/symfony — pull request #6388 by TerjeBr (2012-12-16 22:49:58+00:00)
Title: Do not start the session unless it is (or has been) written to

Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: #6036
License of the code: MIT

The session->get (and the like functions) should only start the session in the current request if the session had already been started in a previous request.