Commit c23b671f by Qiang Xue

better fix [skip ci]

parent 03db4c46
...@@ -301,7 +301,7 @@ class Session extends Component implements \IteratorAggregate, \ArrayAccess, \Co ...@@ -301,7 +301,7 @@ class Session extends Component implements \IteratorAggregate, \ArrayAccess, \Co
*/ */
public function getCookieParams() public function getCookieParams()
{ {
return array_merge(session_get_cookie_params(), $this->_cookieParams); return array_merge(session_get_cookie_params(), array_change_key_case($this->_cookieParams));
} }
/** /**
...@@ -314,7 +314,7 @@ class Session extends Component implements \IteratorAggregate, \ArrayAccess, \Co ...@@ -314,7 +314,7 @@ class Session extends Component implements \IteratorAggregate, \ArrayAccess, \Co
*/ */
public function setCookieParams(array $value) public function setCookieParams(array $value)
{ {
$this->_cookieParams = array_change_key_case($value); $this->_cookieParams = $value;
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment