Hi,
In servlet programs, when I add Cookies, "Test_Cookie" with expirations,
i.e., calling
setMaxAge(long), the server sends wrong formated cookie strings.
More specifically, the first element of "expires" attribute of cookie
will be gabled like below;
HTTP/1.1 200 OK
Date: Mon, 27 Nov 2000 08:58:33 GMT
Server: Apache/1.3.9 (Unix)
Set-Cookie2: Test_Cookie=THIS IS
TEST.;version=1;domain=.lycos.co.jp;MaxAge=31536000
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Connection: Keep-alive, close
Cache-Control: no-cache="set-cookie,set-cookie2"
Content-Length: 5
->Set-Cookie: Test_Cookie=THIS IS TEST.;domain=.lycos.co.kr;expires=k,
27-11-2001 08:58:34 GMT
Set-Cookie: jsessionid=91301975315514025;path=/
Content-Type: text/html; charset=ISO-8859-1
Actually, I tested it same way on WinNT and Linux, and had two different
results.
As for WinNT, same result as above.
As for Linux, the correct one I had.
My current system environment is below;
JRun 3.0 + SP1
OS : SunOS 5.7
Web Server : apache 1.3.9
JVM : java version "1.2.2"
Solaris VM (build Solaris_JDK_1.2.2_05a, native threads, sunwjit)
Regards,
Sean Lim
SolvitHightech in Korea
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists