You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Matthias Braun (JIRA)" <ji...@apache.org> on 2015/02/25 17:29:04 UTC

[jira] [Commented] (WICKET-5841) continueToOriginalDestination() discards new cookies

    [ https://issues.apache.org/jira/browse/WICKET-5841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14336710#comment-14336710 ] 

Matthias Braun commented on WICKET-5841:
----------------------------------------

Looks like this only happens if the code is called during page construct or onInitialize().
In an AJAX request setting the cookies works.

An AJAX request is not an option in my case because I'm using this for an auto-login implementation

> continueToOriginalDestination() discards new cookies
> ----------------------------------------------------
>
>                 Key: WICKET-5841
>                 URL: https://issues.apache.org/jira/browse/WICKET-5841
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 6.17.0
>            Reporter: Matthias Braun
>
> When you set a cookie before calling Component.continueToOriginalDestination() the cookie is discarded and not passed to the client browser.
> Example code:
> new CookieUtils().save("mycookie", "value");
> continueToOriginalDestination();
> The cookie "mycookie" does not get set.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)