Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1131

Do not return 'null' for the value when invalidating a cookie

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Trivial Trivial
    • 2.0.0.Beta1, 1.4.19.Final
    • 1.4.18.Final
    • Servlet
    • None

      I saw http response that contains this header:

      Set-Cookie: JSESSIONIDSSO=null; path=/; Max-Age=0; Expires=Thu, 01-Jan-1970 00:00:00 GMT

      I guess it is perfectly valid but this 'null' value is too much dev oriented to my taste.
      This is coming (I guess) from:

      private static String addRfc6265ResponseCookieToExchange(final Cookie cookie) {
      final StringBuilder header = new StringBuilder(cookie.getName());
      header.append("=");
      header.append(cookie.getValue());

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              jamat Juan AMAT (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: