-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
session regenerate race condition #1812
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
Conversation
Have you tested your changes? |
So I test it with running one more scripts by ajax, after this changes session regenated succesfully, |
Are you able to write to session after calling |
You're right, there was an error with the subsequent entry in the session, resolved by re-calling session_start. |
I "fixed" it by hiding the warning message. Because this issue is caused by race condition, I don't see a perfect solution to it. Could you test it to see if it works for you now? |
* upstream: (106 commits) fixed i18n link one more revert. Reverted changes unrelated to issue yiisoft#2325 Revert "fixing wrapping - my NetBeans has a mind of its own." Revert "deleting one space before `:`" deleting one space before `:` fixing wrapping - my NetBeans has a mind of its own. Adding support for the X-HTTP-Method-Override header. fixed test break. adjusted required packages for yii2-dev. Fixes yiisoft#1812: Hide potential warning message due to race condition occurring to `Session::regenerateID()` call docs fix fixed docs, added checks Fixed globalOptions array issue. removed suffix, since it will be applied later in getFixturesConfig method. method names fixed added docs added suffix added globalFixtures option Removed duplicated getAlias call. ...
Hello!
When two scripts simultaneously turning to session data, session id regeneration sometimes fails by "session_regenerate_id (): Session object destruction failed". This is a race condition. Maybe a recording session should be closed before regeneration?