cookie problem

0 views
Skip to first unread message

Ajit Kumar

unread,
Dec 26, 2009, 10:01:05 AM12/26/09
to javaw...@googlegroups.com
Hi,

I have some issue with setting the cookie for the base domain.com from sub2.sub1.domain.com
I mean to say that my site is running  on y.x.abc.com and want to set cookie for domain .abc.com as per RFC2109 it is not possible. But is it any way to do that.

Thanks
Ajit kumar

kontia

unread,
Jan 3, 2010, 11:54:13 PM1/3/10
to Java Web Application
use domain and path both compulsory
e.g. cookie.setDomain(".abc.com");
cookie.setPath("/");

Thanks

Reply all
Reply to author
Forward
0 new messages