Skip to content

SQLSTATE[22003]: Numeric value out of range exception when using PdoSessionHandler #34409

Closed
@ghost

Description

Symfony version(s) affected:
4.4.0-beta2

Description
When using PdoSessionHandler to store session data, the sess_lifetime column data type is wrong and leads to a SQLSTATE[22003]: Numeric value out of range error exception.

I think that before the 4.4 version, the data stored in the column was the lifetime of the session, a duration in seconds. Now it tries to store the expiration time of the session, a Unix timestamp (Is it a wanted behavior?). The data type is MEDIUMINT under MySQL for the sess_lifetime column and it cant be used to store a timestamp.

How to reproduce

Possible Solution

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