Skip to content

Commit

Permalink
Phalcon\Session\Adapter\Redis: add cookie_secure option
Browse files Browse the repository at this point in the history
  • Loading branch information
PyYoshi committed Dec 17, 2014
1 parent e832c9b commit 69fbf19
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_lifetime', $options['cookie_secure']);
}

parent::__construct($options);
}
}

0 comments on commit 69fbf19

Please sign in to comment.