Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[HttpFoundation] get currently session.gc_maxlifetime if ttl doesnt exists #34827

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

Merged
merged 1 commit into from
Dec 6, 2019
Merged

[HttpFoundation] get currently session.gc_maxlifetime if ttl doesnt exists #34827

merged 1 commit into from
Dec 6, 2019

Conversation

rafaeltovar
Copy link
Contributor

Q A
Branch? master / 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #34659
License MIT

If option ttl was not defined in RedisSessionHandler, this got the default session.gc_maxlifetime. With this fixed, RedisSessionHandler get the currently session.gc_maxlifetime.

@rafaeltovar
Copy link
Contributor Author

@nicolas-grekas is it ok?

@nicolas-grekas nicolas-grekas changed the title get currently session.gc_maxlifetime if ttl doesnt exists #34659 [HttpFoundation] get currently session.gc_maxlifetime if ttl doesnt exists Dec 6, 2019
@nicolas-grekas nicolas-grekas added this to the 4.4 milestone Dec 6, 2019
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

(for 4.4)

@nicolas-grekas nicolas-grekas changed the base branch from master to 4.4 December 6, 2019 09:28
@nicolas-grekas
Copy link
Member

Thank you @rafaeltovar.

nicolas-grekas added a commit that referenced this pull request Dec 6, 2019
…tl doesnt exists (rafaeltovar)

This PR was submitted for the master branch but it was squashed and merged into the 4.4 branch instead.

Discussion
----------

[HttpFoundation] get currently session.gc_maxlifetime if ttl doesnt exists

| Q             | A
| ------------- | ---
| Branch?       | master / 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #34659
| License       | MIT

If option `ttl` was not defined in RedisSessionHandler, this got the default `session.gc_maxlifetime`. With this fixed, RedisSessionHandler get the currently `session.gc_maxlifetime`.

Commits
-------

b6253e2 [HttpFoundation] get currently session.gc_maxlifetime if ttl doesnt exists
@nicolas-grekas nicolas-grekas merged commit b6253e2 into symfony:4.4 Dec 6, 2019
@rafaeltovar
Copy link
Contributor Author

You're welcome @nicolas-grekas :)

This was referenced Dec 19, 2019
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.

4 participants