Wicket: use of cookie block until user confirms.

According to European Union law, websites must not use cookies until they have been verified by the user. How can we say that Wicket does not use cookies automatically until the user confirms this? Is there any other addition for this?

+5
source share
2 answers

You can create your own Filter instance that is called before WicketFilter and pass the ServletResponse instance into a chain that prevents the creation of cookies:

 chain.doFilter(req, new HttpServletResponseWrapper(response) { @Override public void addCookie(Cookie cookie) { } }); 
+1
source

You can use something like cookiecuttr and have gates to search for the cookie that it sets before setting it.

+2
source

Source: https://habr.com/ru/post/1206007/


All Articles