mirror of https://github.com/MISP/MISP
Destroy the CakeSession, not the php one. Fixes #4808
parent
e9ad09afdd
commit
50846595c8
|
@ -505,7 +505,7 @@ class AppController extends Controller
|
|||
echo json_encode($this->Log->getDataSource()->getLog(false, false), JSON_PRETTY_PRINT);
|
||||
}
|
||||
if ($this->isApiAuthed && $this->_isRest()) {
|
||||
session_destroy();
|
||||
$this->Session->destroy();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue