|
|
|
@ -140,7 +140,7 @@ class DbSession extends MultiFieldSession
|
|
|
|
|
->queryOne(); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
if ($row !== false) { |
|
|
|
|
if ($row !== false && $this->getIsActive()) { |
|
|
|
|
if ($deleteOldSession) { |
|
|
|
|
$this->db->createCommand() |
|
|
|
|
->update($this->sessionTable, ['id' => $newID], ['id' => $oldID]) |
|
|
|
@ -151,11 +151,6 @@ class DbSession extends MultiFieldSession
|
|
|
|
|
->insert($this->sessionTable, $row) |
|
|
|
|
->execute(); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
// shouldn't reach here normally |
|
|
|
|
$this->db->createCommand() |
|
|
|
|
->insert($this->sessionTable, $this->composeFields($newID, '')) |
|
|
|
|
->execute(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|