public function unlock() { static $unlocked; if ($this->isStarted() && $unlocked !== TRUE) { $key = get_class($this); if (isset($this->data[$key]) && $this->data[$key] === TRUE) { $this->phpWrapper->phpWriteGlobalVariable($this->data, '_SESSION', self::SESSION_NAME); } $this->phpWrapper->session_write_close(); NETHGUI_DEBUG && $this->getLog()->notice(sprintf('%s: session_write_close()', __CLASS__)); $unlocked = TRUE; } return $this; }