Skip to content

Commit

Permalink
Pull in secure from configuration for sessions.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Nov 1, 2013
1 parent 529d2b4 commit 37fa9a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Illuminate/Session/Middleware.php
Expand Up @@ -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
));
}
}
Expand Down

0 comments on commit 37fa9a1

Please sign in to comment.