@ -248,6 +248,18 @@ class SessionxDAO extends SQL {
$this->run('Sessionx');
}*/
function clear() {
$this->_sql = '
truncate table sessionx';
$this->prepare(
'Sessionx',
array(
)
);
}
function getAll() {
@ -21,6 +21,9 @@ class Core implements MessageComponentInterface {
$this->loop = $loop;
$this->baseuri = $baseuri;
$sd = new \Modl\SessionxDAO();
$sd->clear();
$this->registerCleaner();
@ -46,7 +46,7 @@ class Session {
// Launching the linker
$this->process = new \React\ChildProcess\Process(
'php linker.php',
'exec php linker.php',
null,
'sid' => $this->sid,