Skip to content

Commit b6d6521

Browse files
MacDadafabpot
authored andcommitted
[Security][bugfix] "Remember me" cookie cleared on logout with custom "secure"/"httponly" config options [1]
1 parent dd674c5 commit b6d6521

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RememberMe/AbstractRememberMeServices.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ protected function cancelCookie(Request $request)
293293
$this->logger->debug(sprintf('Clearing remember-me cookie "%s"', $this->options['name']));
294294
}
295295

296-
$request->attributes->set(self::COOKIE_ATTR_NAME, new Cookie($this->options['name'], null, 1, $this->options['path'], $this->options['domain']));
296+
$request->attributes->set(self::COOKIE_ATTR_NAME, new Cookie($this->options['name'], null, 1, $this->options['path'], $this->options['domain'], $this->options['secure'], $this->options['httponly']));
297297
}
298298

299299
/**

0 commit comments

Comments
 (0)