-
Notifications
You must be signed in to change notification settings - Fork 21
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
AD-231 Add secure and http_only parameters support for cookies #139
Conversation
src/Sifo/Cookie.php
Outdated
{ | ||
|
||
$domain ?: self::_initDomain(); | ||
|
||
if ( 0 == $days ) | ||
{ | ||
$result = setcookie( $name, $value, 0, self::$path, self::$domain ); | ||
$result = setcookie( $name, $value, 0, self::$path, self::$domain, $secure, $http_only ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you have to try to add a unit test for this method. Touch me if you want any help ;-D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I was on it, though it was a bit tricky because of class design. Finally I made tests working by adding some seams here and there. Please, take a look again! 😃
5346814
to
c6aa534
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$secure = false, $http_only = false
so current behaviour is preserved.