Set some age for this cookie.

On Fri, Apr 5, 2013 at 4:31 PM, divad91 <[email protected]> wrote:

> Does NonResettingRestartException suppose to keep the cookies in the
> response
> ?
>
> I am using wicket 6.6.0 on jboss 6 and when I throw a
> NonResettingRestartException, the cookies are not present in the request
> after.
>
> Cookie appCookie = new Cookie("appCoookie", "1");
> ((WebResponse) getResponse()).addCookie(appCookie);
> // Redirection needed for client cookies detection.
> throw new
>
> NonResettingRestartException(AppWebSession.session().getNavigationManager().getEntryPoint()
>                                                         .getNodeClass(),
> this.pageParameters);
>
> .....
>
> In the same page constructor the first thing i check is the presence of the
> cookie:
> Cookie requestCookie = ((WebRequest) getRequest()).getCookie("appCoookie");
> System.out.println("----------------------->" + (requestCookie != null));
> // Always false.
>
> Thanks
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Browser-Cookie-detection-tp4657744p4657772.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

Reply via email to