Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Pull in secure from configuration for sessions.
- Loading branch information
Showing
with
3 additions
and
1 deletion.
-
+3
−1
src/Illuminate/Session/Middleware.php
|
@@ -141,8 +141,10 @@ protected function addCookieToResponse(Response $response, SessionInterface $ses |
|
|
|
|
|
if ($this->sessionIsPersistent($c = $this->manager->getSessionConfig())) |
|
|
{ |
|
|
$secure = array_get($c, 'secure', false); |
|
|
|
|
|
$response->headers->setCookie(new Cookie( |
|
|
$s->getName(), $s->getId(), $this->getCookieLifetime(), $c['path'], $c['domain'] |
|
|
$s->getName(), $s->getId(), $this->getCookieLifetime(), $c['path'], $c['domain'], $secure |
|
|
)); |
|
|
} |
|
|
} |
|
|