tcl-websh-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ronnie Brunner <ron...@netcetera.ch>
Subject Re: Patch to cookie.ws3
Date Mon, 13 Sep 2004 07:58:33 GMT
Hi Ulrich

Your patch looks good to me and I get

> ./websh3.5.1a1
% web::cookiecontext c -expires 1096661846; c::cset a b; c::save 3;web::put ""
Content-Type: text/html
Set-Cookie: 3=XDZ0YDSyq3XUydcC; expires=Fri, 01-Oct-2004 20:17:26 GMT
Generator: websh 3.5.1a1

%

Is this not what you'd expect? What does your output look like?

Regards
Ronnie

> There's a bug in src/generic/cookie.ws3
> 
> It's not possible to specify the expiration date of a cookie as a number of 
> seconds from the unix epoch, as described in 'web::cookiecontext'.
> 
> I attached a patch to cookie.ws3, which corrects it.
> 
> There's still a bug (?) I don't understand:
> 
> When I specify 1096575446 (30-Sep-2004.....) as expiration date, everything 
> works ok. When I specify 1096661846 (01-Oct-2004....) the cookie has an 
> expiration date of 'at end of session'. What's going wrong?
> 
> Best regards
> 
> Ulrich


> To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
> For additional commands, e-mail: websh-dev-help@tcl.apache.org

----------------------------------------------------------------------
Ronnie Brunner                             ronnie.brunner@netcetera.ch
Netcetera AG, 8040 Zuerich   phone +41 1 247 79 79 fax +41 1 247 70 75

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org


Mime
View raw message