public function get_hs_session() { import('core.session.handler'); import('core.session.remote_storage.handlersocket'); import('core.session.local_storage.cookie'); import('core.utils.ipv4'); $sh = new Handler(); $srp = new RemoteStorage\HandlerSocket(); $slc = new LocalStorage\Cookie(); $srp->attach_hs(\Core\Backend\HS::container()->get_backend()); $this->_load_config(); try { $sh->attach_remote_storage($srp)->attach_local_storage($slc)->attach_crypto_config($this->_config['crypto'])->set_remote_addr(\Core\Utils\IPV4::get())->initialize_remote_storage()->start(); return $sh; } catch (Core\Error $e) { echo "SERIOUSLY AN ERROR"; // Colossal failure. return False; } }