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

SessionSection::setExpiration checks session's expiration, but session may not be started yet -> warning #209

Closed
forgie1 opened this issue Nov 26, 2021 · 2 comments

Comments

@forgie1
Copy link

forgie1 commented Nov 26, 2021

Version: 3.1.4

Bug Description

Warning: The expiration time is greater than the session expiration 1440 seconds

Steps To Reproduce

  1. session has not been started yet
  2. $session->setExpiration('14 days');
  3. $session->getSection('test')->setExpiration('1 day');

Expected Behavior

SessionSection::setExpiration() should start the session if had not been started yet or consider proper expiration time of not yet started session.

@forgie1 forgie1 changed the title SessionSection::setExpiration checks session, but session may not be started yet -> warning SessionSection::setExpiration checks session's expiration, but session may not be started yet -> warning Nov 26, 2021
@krekos
Copy link

krekos commented Nov 29, 2021

I encoutered same problem when running some tests. Service is using Sessions with custom expiration, but Session is not started yet.

@dg
Copy link
Member

dg commented Nov 29, 2021

fixed in 3.1.5

@dg dg closed this as completed Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants