codeguy/Slim — pull request #719 by akrabat (2013-12-29 15:35:43+00:00)
Title: Don't start a session when finalize() is called.

If the session hasn't already been started, then there is no need to start one in finalize() which is what happens when the flash or session objects are retrieved from Pimple.

Note: I've tested for the existence of $_SESSION for compatibility with PHP 5.3. For PHP 5.4+, it would be neater to use session_status().