Skip to content

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

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy