Skip to content

Commit 2b34fcf

Browse files
authored
fix Setting read-only property: feehi\web\Session::name
1 parent 9d3c816 commit 2b34fcf

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/web/Session.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ class Session extends Component implements \IteratorAggregate, \ArrayAccess, \Co
2121
public $handler;
2222

2323
public $timeout = null;
24+
25+
public $name = "feehi_session";
2426

2527
private $_cookieParams = [
2628
'lifetime' => 1400,
@@ -151,10 +153,15 @@ public function getId()
151153
public function regenerateID($deleteOldSession = false)
152154
{
153155
}
156+
157+
public function setName($name)
158+
{
159+
$this->name = $name;
160+
}
154161

155162
public function getName()
156163
{
157-
return "feehi_session";
164+
return $this->name;
158165
}
159166

160167
public function getSavePath()
@@ -359,4 +366,4 @@ public function offsetUnset($offset)
359366
$this->open();
360367
unset($_SESSION[$offset]);
361368
}
362-
}
369+
}

0 commit comments

Comments
 (0)