s/regeneratesessionid/changeSessionId/ for better naming.