Skip to content

ext/session: add recursive session cleanup for dirname > 0#21491

Open
jorgsowa wants to merge 1 commit intophp:masterfrom
jorgsowa:fix/gc-session-cleanup
Open

ext/session: add recursive session cleanup for dirname > 0#21491
jorgsowa wants to merge 1 commit intophp:masterfrom
jorgsowa:fix/gc-session-cleanup

Conversation

@jorgsowa
Copy link
Contributor

@jorgsowa jorgsowa commented Mar 22, 2026

When dirname is bigger than 0, there is no automatic cleanup of old sessions. I think it's oversight and shouldn't work like this. If the performance is the issue then lower GC probability should be set instead ignoring cleanup.

This is not security issue, because documentation clearly state the current behavior, but still should work differently from the first place.

@jorgsowa jorgsowa marked this pull request as ready for review March 22, 2026 16:51
@jorgsowa jorgsowa requested a review from Girgias as a code owner March 22, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant