/** * Assign a new, random ID to the session. */ public function regenerate() { $this->session['id'] = $this->storage->id(); $this->exists = false; }