code: HttpSession newSession()
      {
          HttpSession session=_servletHandler.newHttpSession(this);
          Cookie cookie=_servletHandler.getSessionManager().getSessionCookie(session,isSecure());
          if (cookie!=null)
              _servletHttpResponse.getHttpResponse().addSetCookie(cookie);
          return session;
      }
docs: /* Create a new HttpSession.
  If cookies are being used a set cookie is added to the response.