symfony/symfony — pull request #4541 by dlsniper (2012-06-09 19:59:06+00:00)
Title: [HttpFoundation][Session]Fixed detection of an active session and improved autostart for sessions

Bug fix: yes
Feature addition: no (not until the auto_start when get/set is activated at least, see todo list)
Backwards compatibility break: no (as far as I can tell)
Symfony2 tests pass: [![Build Status](https://secure.travis-ci.org/dlsniper/symfony.png?branch=session-start-fix)](http://travis-ci.org/dlsniper/symfony)
Fixes the following tickets: #4529
Todo:
- either remove auto_start option or remove the auto_start code when get/set something from session,
- check the rest of the Session code/tests to see if the changes to the interface need to be added somewhere else or not
License of the code: MIT
Documentation PR: ~

This fixes the problem when the session variable inside $request now has always data in it as it's now more powerful but this introduces the problem that the old way of detecting if a session is started or not doesn't work anymore.

Also this patch removes the need for sessions to autostart as they will always start on get/set if needed.