public Cookie getSessionCookie(HttpSession session,boolean requestIsSecure)
{
if (_handler.isUsingCookies())
{
Cookie cookie = _handler.getSessionManager().getHttpOnly()
?new HttpOnlyCookie(SessionManager.__SessionCookie,session.getId())
:new Cookie(SessionManager.__SessionCookie,session.getId());
String domain=_handler.getServletContext().getInitParameter(SessionManager.__SessionDomain);
String maxAge=_handler.getServletContext().getInitParameter(SessionManager.__MaxAge);
String path=_handler.getServletContext().getInitParameter(SessionManager.__SessionPath);
if (path==null)