Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-3631

invoking setResponsePage after setting cookie results in cookie not being created(no Set-Cookie header being sent to the client).

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 1.5-RC3
    • None
    • None
    • None

    Description

      invoking setResponsePage after setting cookie results in Set-Cookie header not being sent to the client.

      add(new Link("create-cookie") {

      @Override
      public void onClick()

      { CookieUtils cookieUtils = new CookieUtils(); cookieUtils.getSettings().setMaxAge(60 * 60 * 24 * 7); //7 days expiration cookieUtils.save("rememberme", "john"); //by adding the call to setResponsePage(TestPage2.class); //cookie will not be created //comment the line below and cookie is being created setResponsePage(TestPage2.class); }

      Attachments

        1. no-cookie.png
          64 kB
          Serban Balamaci
        2. wicket-cookie.tar.gz
          27 kB
          Serban Balamaci

        Issue Links

          Activity

            People

              Unassigned Unassigned
              balamaci Serban Balamaci
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: