loginrequest saves session id and session name to database