Permalink
Browse files

Pull in secure from configuration for sessions.

  • Loading branch information...
taylorotwell committed Nov 1, 2013
1 parent 529d2b4 commit 37fa9a1c599069ea475e75cd540b9239f76ecc71
Showing with 3 additions and 1 deletion.
  1. +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
));
}
}

0 comments on commit 37fa9a1

Please sign in to comment.