If you are testing your application, you should be aware that IE does
NOT evaluate cookie age during sessions. Meaning that if you set a
relatively short age, to test your app. you should restart IE in order
to get rid of cookies expired during session.

Hope this gives you a hint...

Mvh / Regards
Christian Petersen
Lead Programmer, Partner
IPeople Aps
Tlf: +45 23615398
Email: [EMAIL PROTECTED]
http://www.ipeople.dk


-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]] On Behalf Of
Yaojun Niu
Sent: 12. november 2001 09:52
To: [EMAIL PROTECTED]
Subject: Question about setting max age of Cookie for I.E.

Hi:
I encounter a problem with using cookie for IE:
Try to set the max age for a cookie in a servlet.but
when using IE to revoke the servlet,the cookie does
not expire as I expected ( after a period of time,
which had been set in the max age for the cookie),it
seems that IE manages cookie in a strange way: get the
cookie creation date (server date, not client date)
and plus the max age, this is the expiring age for the
cookie managed by IE. However, Netscape does not
manage the cookie like that, it seems that Netcapse
get the arrival date ( to the client, broswer) of the
cookie and plus the maxAge to caculate the expiring
age for a cookie.
In another word, I can not find a way to manage the
cookie's age on the server side for I.E.
Any comment on this problem is highly appreciated.

Jackie


_________________________________________________________
Do You Yahoo!? ��¼����Ż�����! http://mail.yahoo.com.cn

<font color=#6666FF>���ģ����ƣ����ˣ�û���ɣ���������ɣ�</font>����
�Ż�ȫ��������! http://cn.chat.yahoo.com/c/roomlist.html

________________________________________________________________________
___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to