Navigation Menu

Skip to content

Commit

Permalink
Fixing a couple issues in session handling
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed May 17, 2014
1 parent b96107b commit 61d3dee
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/Network/Session.php
Expand Up @@ -36,13 +36,6 @@
*/
class Session {

/**
* Session cookie name
*
* @var string
*/
protected static $_cookieName = null;

protected $_engine;

protected $_started;
Expand Down Expand Up @@ -71,7 +64,6 @@ public static function create($sessionConfig = []) {
if (!isset($sessionConfig['ini']['session.name'])) {
$sessionConfig['ini']['session.name'] = $sessionConfig['cookie'];
}
static::$_cookieName = $sessionConfig['ini']['session.name'];

if (!empty($sessionConfig['handler'])) {
$sessionConfig['ini']['session.save_handler'] = 'user';
Expand All @@ -85,7 +77,7 @@ public static function create($sessionConfig = []) {
$sessionConfig['ini']['session.cookie_httponly'] = 1;
}

return new static($config);
return new static($sessionConfig);
}

/**
Expand Down

0 comments on commit 61d3dee

Please sign in to comment.