mirror of https://github.com/MISP/MISP
fix: [internal] Destroy session just when session is started
parent
09c578d2c3
commit
c51cd36ac3
|
@ -586,7 +586,7 @@ class AppController extends Controller
|
|||
|
||||
public function afterFilter()
|
||||
{
|
||||
if ($this->isApiAuthed && $this->_isRest()) {
|
||||
if ($this->isApiAuthed && $this->_isRest() && $this->Session->started()) {
|
||||
$this->Session->destroy();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue