id() ?: session_id(); } // Store the data for this collection in the database. $storage = $this->storageFactory->get("user.shared_tempstore.$collection"); return new SharedTempStore($storage, $this->lockBackend, $owner, $this->requestStack, $this->expire); } }