Skip to content

Commit

Permalink
Provide session defaults.
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Aug 1, 2014
1 parent 8b6f04b commit 451ab1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Network/Request.php
Expand Up @@ -156,6 +156,7 @@ class Request implements \ArrayAccess {
*/
public static function createFromGlobals() {
list($base, $webroot) = static::_base();
$sessionConfig = (array)Configure::read('Session') + array('defaults' => 'php');
$config = array(
'query' => $_GET,
'post' => $_POST,
Expand All @@ -164,7 +165,7 @@ public static function createFromGlobals() {
'environment' => $_SERVER + $_ENV,
'base' => $base,
'webroot' => $webroot,
'session' => Session::create(Configure::read('Session'))
'session' => Session::create($sessionConfig)
);
$config['url'] = static::_url($config);
return new static($config);
Expand Down

0 comments on commit 451ab1d

Please sign in to comment.