Skip to content

[Session] PdoSessionHandler notice about data size #5269

Closed
@Tobion

Description

@Tobion

If the session data doesn't fit in the data column, it might get truncated by the RDMS (at least mysql). So the data gets corrupted and also PHP session system ignores the data without giving a warning.

So the docs should add a note for this case that people can

  • increase the column size (e.g. BLOB to MEDIUMBLOB) if they have huge session data
  • enable STRICT SQL MODE in mysql so that such an error would be noticed

Based on symfony/symfony#14647

Metadata

Metadata

Assignees

No one assigned

    Labels

    HttpFoundationactionableClear and specific issues ready for anyone to take them.good first issueIdeal for your first contribution! (some Symfony experience may be required)hasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions