Skip to content

[HttpFoundation] Serialization error with PdoSessionStorage  #3000

Closed
@pkruithof

Description

@pkruithof

When using PdoSessionStorage, an exception is thrown by PHP when the session is serialized:

PDOException: You cannot serialize or unserialize PDO instances

I think the Session class needs to check if the storage can be serialized, maybe by using a NotSerializable interface, as @fabpot blogged about a while ago.

FYI: this issue is caused by Symfony\Bundle\FrameworkBundle\DataCollector\RequestDataCollector::serialize() and only occurs when I forward a request. I'm using the latest Symfony version to date (2.0.8).

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