I just created a new wicket 6.6.0 quickstart project
(http://wicket.apache.org/start/quickstart.html) 
and I have the same problem.

If I add the following code in the HomePage class,

Cookie requestCookie = ((WebRequest) getRequest()).getCookie("appCoookie");
System.out.println("----------------------->" + (requestCookie != null));
                
Cookie appCookie = new Cookie("appCoookie", "1");
appCookie.setMaxAge(3600 * 5);
appCookie.setPath("/");
appCookie.setSecure(false);

((WebResponse) getResponse()).addCookie(appCookie);
if (getSession().getAttribute("init") == null) {
    getSession().setAttribute("init", "true");
   System.out.println("here...");
   throw new NonResettingRestartException(HomePage.class);
}

the second time I enter the HomePage constructor, the cookie is not present
in the request.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Browser-Cookie-detection-tp4657744p4657789.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]

Reply via email to