mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
fixed implementation of Session::getHasSessionId().
This commit is contained in:
@ -201,6 +201,9 @@ class Session extends Component implements \IteratorAggregate, \ArrayAccess, \Co
|
||||
*/
|
||||
public function getHasSessionId()
|
||||
{
|
||||
if ($this->getIsActive()) {
|
||||
return true;
|
||||
}
|
||||
if ($this->_hasSessionId === null) {
|
||||
$name = $this->getName();
|
||||
$request = Yii::$app->getRequest();
|
||||
|
Reference in New Issue
Block a user