Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename expirationTime/lifetime to what it really is: an idle timeout #554

Merged
merged 1 commit into from
Dec 23, 2022

Conversation

Slamdunk
Copy link
Member

@Slamdunk Slamdunk commented Dec 23, 2022

Fix #553 issue 1

@@ -61,7 +61,7 @@ final class SessionMiddleware implements MiddlewareInterface
public function __construct(
Configuration $configuration,
SetCookie $defaultCookie,
private int $expirationTime,
private int $idleTimeout,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Schrödinger's BC break : it's backward incompatible only if you care about named parameters

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, although IMO not worth pursuing this 👍

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, TIL that you can link labels, awesome!

Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a very acceptable improvement, IMO 👍

@Ocramius Ocramius added this to the 8.13.0 milestone Dec 23, 2022
@Ocramius Ocramius self-assigned this Dec 23, 2022
@Ocramius Ocramius merged commit e104492 into psr7-sessions:8.13.x Dec 23, 2022
@Ocramius Ocramius changed the title Rename expirationTime/lifetime to what it really is: idle timeout Rename expirationTime/lifetime to what it really is: an idle timeout Dec 23, 2022
@Ocramius
Copy link
Member

Thanks @Slamdunk!

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.

Sessions may never expire: make Renewal Timeout opt-in, implement Absolute Timeout
2 participants