Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[BC Break?] "Failed to start the session" error #12562

Closed
@kbond

Description

@kbond

After upgrading to 2.5.7 I started seeing this error very frequently. It looks like it has to do with #12341 and am only seeing it with PHP 5.3 (5.3.15 specifically). I don't appear to have the issue on PHP 5.5. When I revert to 2.5.6 everything worked as expected.

I am using the PdoSessionHandler.

Here is an excerpt from my logs:

[2014-11-23 11:01:07] security.DEBUG: Remember-me cookie detected. [] []
[2014-11-23 11:01:07] security.INFO: Remember-me cookie accepted. [] []
[2014-11-23 11:01:07] security.DEBUG: SecurityContext populated with remember-me token. [] []
[2014-11-23 11:01:07] security.DEBUG: Write SecurityContext in the session [] []
[2014-11-23 11:01:07] request.CRITICAL: Uncaught PHP Exception RuntimeException: "Failed to start the session: already started by PHP ($_SESSION is set)." at /.../vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php line 139 {"exception":"[object] (RuntimeException: Failed to start the session: already started by PHP ($_SESSION is set). at /.../vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php:139)"} []
[2014-11-23 11:01:07] security.DEBUG: Write SecurityContext in the session [] []

(Ref: #12325)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions