I tried the solution on the Wiki, but no luck. I am setting a cookie with
session.response().addCookie(c) in writeHTML, where c has the properties
Geoff had in his example (+10 yrs expiration), but the cookie does not
persist across browser instances. Initially, I thought this was because of
IE6's cookie blocking behavior, but I have reproduced it with Mozilla 0.96.
Any ideas anybody? I am clueless...
Thanks in advance,
>From: Geoffrey Talvola <gtalvola@...>
>To: markus jais <info@...>, webware-discuss@...
>Subject: Re: [Webware-discuss] newbie question on cookies
>Date: Thu, 06 Dec 2001 10:14:19 -0500
>At 12:36 AM 12/6/01 +0100, markus jais wrote:
>>thanks, this explains the behavior
>>is there a way to make it last for a specified amount of time.
>>for example, with Perl's CGI.pm I can specify a string like "+2M",
>>which means, that the cookie should stay on disk for 2 month
>>I did not find anything like this in the sources.
>Look at this item in the Wiki which I just added:
>It's designed to set a cookie "forever" but you can modify it to accept a
>specific time period.
>- Geoff Talvola
>Webware-discuss mailing list
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
At 10:20 PM 12/7/01 +0000, Costas Malamas wrote:
>I tried the solution on the Wiki, but no luck. I am setting a cookie with
>session.response().addCookie(c) in writeHTML, where c has the properties
>Geoff had in his example (+10 yrs expiration), but the cookie does not
>persist across browser instances. Initially, I thought this was because
>of IE6's cookie blocking behavior, but I have reproduced it with Mozilla 0.96.
>Any ideas anybody? I am clueless...
>Thanks in advance,
Well, all I can say is it works for me, on Windows NT with both IE 5.5 and
Netscape 4.7. I can completely exit from the browser and when I re-enter
the browser, the cookies are still there.
Try the sample servlet that I attached and see if it works.
- Geoff Talvola