Destroy the CakeSession, not the php one. Fixes #4808

pull/4878/head
Richard van den Berg 2019-07-16 11:56:56 +02:00
parent e9ad09afdd
commit 50846595c8
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}
}