Alan

I suppose you want to have a cookie that never expires. Currently
Cookie#Cookie(String, String, String, String, int, boolean) constructor
blindly assumes max age parameter to be a positive integer. To work the
problem around you can use Cookie#Cookie(String, String, String, String,
Date, boolean) constructor and pass null as expiry date parameter

Hope this helps

Oleg


On Tue, 2003-02-04 at 18:04, Alan Marcinkowski wrote:
> ...When I pass a Cookie that has max age set to -1 to the HttpState 
> addCookie, it thinks its expired (verified by the Cookie.isExpired) call 
> when clearly it isn't supposed to be. It won't put it in the request. 
> Any ideas?
> 
> Thanks.
> 
> Alan
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to