Skip to content

Commit

Permalink
Merge pull request #241 from PyYoshi/feature-session-redis-cookie-secure
Browse files Browse the repository at this point in the history
Phalcon\Session\Adapter\Redis: add cookie_secure option
  • Loading branch information
endeveit committed Dec 17, 2014
2 parents e832c9b + deadf8a commit a128a35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Library/Phalcon/Session/Adapter/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ public function __construct($options = null)
ini_set('session.cookie_lifetime', $options['cookie_lifetime']);
}

if (isset($options['cookie_secure'])) {
ini_set('session.cookie_secure', $options['cookie_secure']);
}

parent::__construct($options);
}
}

0 comments on commit a128a35

Please sign in to comment.