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

Since version 2.0.10 session_regenerate_id() error #315

Open
sergiobelya opened this issue Apr 16, 2018 · 1 comment
Open

Since version 2.0.10 session_regenerate_id() error #315

sergiobelya opened this issue Apr 16, 2018 · 1 comment
Labels
status:to be verified Needs to be reproduced and validated. type:bug Bug

Comments

@sergiobelya
Copy link

What steps will reproduce the problem?

  1. composer update yiisoft/yii2-debug
  2. login (may be login before composer update)
  3. wait for session timeout expired (or set session['timeout'] to small value in config)
  4. update page
  5. pay attention error/exception "session_regenerate_id(): Session write failed. ID: user" on debug mode https://prnt.sc/j5zr17
  6. update page
  7. pay attention auto logout (while authorization with cookies is enabled, because on step 5 thrown Exception)

What's expected?

Exception after session expired not present and auto logout not execute on debug mode.

What do you get instead?

Error/exception "session_regenerate_id(): Session write failed. ID: user" present on debug mode.
Auto logout execute after exception.

Additional info

On yii2-debug 2.0.9 error is not reproduce.
Error is not reproduce after update Yii2 version only (without update yii2-debug).

Q A
Yii version 2.0.15, 2.0.14, 2.0.13, 2.0.12
PHP version 7.1.15
Operating system CentOS 6.9
yii2-debug version 2.0.10, 2.0.11, 2.0.12, 2.0.13
@samdark samdark added type:bug Bug status:to be verified Needs to be reproduced and validated. labels Apr 16, 2018
@asmodai1985
Copy link

I guess session_start() is run too early in “UserPanel”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:to be verified Needs to be reproduced and validated. type:bug Bug
Projects
None yet
Development

No branches or pull requests

3 participants