public function __construct() { $this->started = session_id() !== ''; if (false === $this->started) { AppData::createCommomFolders(); $this->path(AppData::storagePath() . '/session'); $this->name('inphinit'); session_start(); $this->started = true; } }