Skip to content
Permalink
Browse files

fix(session): correctly sets cookie params for sessions

  • Loading branch information
mrclay committed Dec 3, 2014
1 parent fb0e5dd commit 565dd08c884cdb05b40d157472da8a84b0e606a6
Showing with 1 addition and 1 deletion.
  1. +1 −1 engine/classes/Elgg/Di/ServiceProvider.php
@@ -179,7 +179,7 @@ public function __construct(\Elgg\AutoloadManager $autoload_manager) {
$this->setFactory('session', function(ServiceProvider $c) {
// account for difference of session_get_cookie_params() and ini key names
$params = $c->config->get('session');
$params = $c->config->get('cookies')['session'];
foreach ($params as $key => $value) {
if (in_array($key, array('path', 'domain', 'secure', 'httponly'))) {
$params["cookie_$key"] = $value;

0 comments on commit 565dd08

Please sign in to comment.
You can’t perform that action at this time.