public function regenerate($deleteOld = false) { $old = $this->getSessionID(); session_regenerate_id($deleteOld); return $old; }