Skip to content

Commit

Permalink
fix Setting read-only property: feehi\web\Session::name
Browse files Browse the repository at this point in the history
  • Loading branch information
liufee authored Dec 19, 2018
1 parent 9d3c816 commit 2b34fcf
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/web/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ class Session extends Component implements \IteratorAggregate, \ArrayAccess, \Co
public $handler;

public $timeout = null;

public $name = "feehi_session";

private $_cookieParams = [
'lifetime' => 1400,
Expand Down Expand Up @@ -151,10 +153,15 @@ public function getId()
public function regenerateID($deleteOldSession = false)
{
}

public function setName($name)
{
$this->name = $name;
}

public function getName()
{
return "feehi_session";
return $this->name;
}

public function getSavePath()
Expand Down Expand Up @@ -359,4 +366,4 @@ public function offsetUnset($offset)
$this->open();
unset($_SESSION[$offset]);
}
}
}

0 comments on commit 2b34fcf

Please sign in to comment.