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

Skip to content

[Security][bugfix] "Remember me" cookie cleared on logout with custom "secure"/"httponly" config options [1] #14842

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

MacDada
Copy link
Contributor

@MacDada MacDada commented Jun 3, 2015

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #14822
License MIT
Doc PR ~

MacDada added 3 commits June 3, 2015 01:58
…ut()

It does work for default values of "secure" and "httponly" options, but it would break if one customized those options.
symfony#14822
…y" options

* test now always pass those options, as they are required
* could be considered BC, but RememberMeFactory passes them, so they should've always been treated as required
* symfony#14822
…elCookie() uses "secure" and "httponly" options)
@MacDada MacDada changed the title [Security][bugfix] "Remember me" cookie cleared on logout with all config options [1] [Security][bugfix] "Remember me" cookie cleared on logout with custom "secure"/"httponly" config options [1] Jun 3, 2015
$this->options['domain'],
$this->options['secure'],
$this->options['httponly']
));
Copy link
Member

Choose a reason for hiding this comment

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

should be kept on one line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why? It would make a really long line (difficult to read). 207 chars, which is a "warning sign" under PSR-2, which recommends to split such lines.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

BTW, is it possible to "restart" fabbot.io?

Copy link
Contributor

Choose a reason for hiding this comment

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

Why? It would make a really long line (difficult to read). 207 chars, which is a "warning sign" under PSR-2, which recommends to split such lines.

We've got wide monitors and don't mind long lines ;)

but seriously, readability is a personal preference in this case and we tend NOT to brake lines in such cases in the rest of codebase.

BTW, is it possible to "restart" fabbot.io?

Not as far as I know.

@fabpot fabpot added the Security label Oct 5, 2015
@fabpot
Copy link
Member

fabpot commented Oct 5, 2015

Thank you @MacDada.

fabpot added a commit that referenced this pull request Oct 5, 2015
…with custom "secure"/"httponly" config options [1] (MacDada)

This PR was squashed before being merged into the 2.3 branch (closes #14842).

Discussion
----------

[Security][bugfix] "Remember me" cookie cleared on logout with custom "secure"/"httponly" config options [1]

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #14822
| License       | MIT
| Doc PR        | ~

* test now always pass "secure" and "httponly" options, as they are required
* could be considered BC, but [`RememberMeFactory` passes them](https://github.com/symfony/symfony/blob/2.3/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/RememberMeFactory.php#L21), so they should've always been treated as required
* I can squash the commits before merging
* Alternative solution: #14843

Commits
-------

18b1c6a [Security][bugfix] "Remember me" cookie cleared on logout with custom "secure"/"httponly" config options [1]
@fabpot fabpot closed this Oct 5, 2015
This was referenced Oct 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants