Skip to content

[HttpFoundation] MongoDbSessionHandler does not support disabling of gc operations #11508

Closed
@catchamonkey

Description

@catchamonkey

Hi,

I've implemented the MongoDbSessionHandler, am also using a Mongo index with expireAfterSeconds to expire the session after a set amount of inactivity.
However even with this set, the gc method still performs a delete operation of it's own.

Have thought about adding an option to the Session Handler to disable that method from doing anything, and also having the write method add the expires index.

Does that sound OK? Happy to code it and send a PR.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions