模块Cookie的问题 [英] problems with module Cookie

查看:47
本文介绍了模块Cookie的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨。

我正在使用Cookie模块(在客户端)。

我发现尝试解析cookie时出现问题:


" Set-Cookie:value = thevalue; path = /;

expires =星期五,2004年5月21日10:40:51 GMT"


日期未正确解析,仅星期五,"匹配。

感谢和问候Manlio Perillo

解决方案

Manlio Perillo< NO ******** **********@libero.it> pisze:

我正在使用Cookie模块(在客户端)。
我发现尝试解析cookie时出现问题:

" Set-Cookie:value = thevalue; path = /;
expires = Fri,21-May-2004 10:40:51 GMT"




您必须使用UTC格式的日期。 />

-

Jarek Zgoda
http://jpa.berlios.de/


2004年5月22日星期六20:06:45 +0000(UTC),Jarek Zgoda

< jz **** @ gazeta.usun.pl>写道:

Manlio Perillo< NO ****************** @ libero.it> pisze:

我正在使用Cookie模块(在客户端)。


^^^我发现尝试解析cookie时出现问题:

Set-Cookie:value = thevalue; path = /;
expires = Fri,21-May-2004 10:40:51 GMT"



您必须使用UTC格式的日期。




这是服务器cookie使用的日期格式!


感谢和问候Manlio Perillo


Manlio Perillo< NO ****************** @ libero.it> pisze:

我正在使用Cookie模块(在客户端)。
^ ^^我发现尝试解析cookie时遇到问题:

Set-Cookie:value = thevalue; path = /;
expires = Fri,21-May-2004 10:40:51 GMT"



您必须使用UTC格式的日期。



这是服务器cookie使用的日期格式!




参见 http://www.w3.org/TR/NOTE-datetime 关于如何查看日期的内容

cookies 。如果日期格式不正确,模块功能可能会解码它。


-

Jarek Zgoda
http://jpa.berlios.de/


Hi.
I''m using the Cookie module (on the client side).
I have found a problem trying to parse the cookie:

"Set-Cookie: value=thevalue; path=/;
expires=Fri, 21-May-2004 10:40:51 GMT"

The date is not parsed correctly, only "Fri," is matched.
Thanks and regards Manlio Perillo

解决方案

Manlio Perillo <NO******************@libero.it> pisze:

I''m using the Cookie module (on the client side).
I have found a problem trying to parse the cookie:

"Set-Cookie: value=thevalue; path=/;
expires=Fri, 21-May-2004 10:40:51 GMT"



You must use date in UTC format.

--
Jarek Zgoda
http://jpa.berlios.de/


On Sat, 22 May 2004 20:06:45 +0000 (UTC), Jarek Zgoda
<jz****@gazeta.usun.pl> wrote:

Manlio Perillo <NO******************@libero.it> pisze:

I''m using the Cookie module (on the client side).
^^^ I have found a problem trying to parse the cookie:

"Set-Cookie: value=thevalue; path=/;
expires=Fri, 21-May-2004 10:40:51 GMT"



You must use date in UTC format.



This is the date format used by the server cookie!


Thanks and Regards Manlio Perillo


Manlio Perillo <NO******************@libero.it> pisze:

I''m using the Cookie module (on the client side).
^^^ I have found a problem trying to parse the cookie:

"Set-Cookie: value=thevalue; path=/;
expires=Fri, 21-May-2004 10:40:51 GMT"



You must use date in UTC format.



This is the date format used by the server cookie!



See http://www.w3.org/TR/NOTE-datetime on how should date look in
cookies. If date is not in valid format, the module functions may have
trouble decoding it.

--
Jarek Zgoda
http://jpa.berlios.de/


这篇关于模块Cookie的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆