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

Fix invalid session regeneration on wrong session ID #166

Closed
wants to merge 0 commits into from

Conversation

fredericgboutin-yapla
Copy link
Contributor

Fix for #165

@@ -426,7 +426,7 @@ public static function start($options = false)
// Generate a valid, temporary replacement
self::setId(md5(self::getId()));
// Force a regenerate after session is started
self::$_regenerateIdState = -1;
self::regenerateId();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we have to explicitly call this method because in this situation the function will return at line 438 because "already started".

Copy link
Contributor

Choose a reason for hiding this comment

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

the ident seems off: mixing tabs and spaces?

stick to existing formatting.

also, never send pull request from master branch. all commits added to the branch end up in the pull request which might not be wanted. also rebase force push might be difficult (rejected)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🤔 I have editorconfig up and running, though 🤷

I meant to checkout a branch, my bad (again).

Copy link
Contributor

Choose a reason for hiding this comment

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

you didn't need to close it yet, if it's not conflicting yet. i.e you do not yet want other changes to your master.

and if you did create a replacement pr, mention it in old pr too to keep things transparent

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It closed automatically as soon as I rolled back my master branch to follow yours.

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

Successfully merging this pull request may close these issues.

2 participants