Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.