hash); if (!is_array($stored)) { $stored = array(); } $this->storage = $stored; } /** * Store the whole session */ protected function store() { if (count($this->storage) > 0) { set_transient($this->hash, $this->storage, self::$expire); } else { delete_transient($this->hash); } } }