/** * * Regenerates and replaces the current session id; also regenerates the * CSRF token value if one exists. * * @return bool True if regeneration worked, false if not. * */ public function regenerateId() { $result = $this->phpfunc->session_regenerate_id(true); if ($result && $this->csrf_token) { $this->csrf_token->regenerateValue(); } return $result; }