I am writing an application which sets a cookie like so:
request.setHeader("Set-Cookie","userName=foo; EXPIRES=Wednesday, 09-Nov-2000
23:12:40 GMT");
This code works perfectly. However, when I include the domain name, it no
longer sets the cookie:
String domain = request.getServerName();
request.setHeader("Set-Cookie","userName=foo; EXPIRES=Wednesday, 09-Nov-2000
23:12:40 GMT; DOMAIN=" + domain );
Note: As tested, request.getServerName() returns "localhost".
Why won't it work when I specify the domain?
Thanks,
Dave Ford
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html