Cookie itself can handle that: Cookie#setDomain(String).
For session cookies, you can use the sun-web.xml, at least in GlassFish:
http://download.oracle.com/docs/cd/E19776-01/820-4502/6nfvbc8id/index.html
On 2 feb 2011, at 04:38, Paolo wrote:
> Hi,
> I want add a cookie, and I saw on this site,
Hi,
I want add a cookie, and I saw on this site, how to do this.
https://cwiki.apache.org/WICKET/dealing-with-cookies.html
((WebResponse)RequestCycle.get().getResponse()).addCookie(new
Cookie("cookieName", "cookieValue"));
but I need to specify also the domanin.
I need something like this PHP
Hi,
I want add a cookie, and I saw on this site, how to do this.
https://cwiki.apache.org/WICKET/dealing-with-cookies.html
((WebResponse)RequestCycle.get().getResponse()).addCookie(new
Cookie("cookieName", "cookieValue"));
but I need to specify also the domanin.
I need something like this PHP