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, 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 code, but for Wicket:
> 
> ini_set('session.cookie_domain', '.otherdomain.com');
> 
> thank you!
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to