Thanks for your reply, but i am still confused by the problem now, let me provide the whole cotext: In my servlet, i just creat a new Cookie with the maxAge value set. The cookie has nothing to do with the session, and then it is passed to the client by revoking the servlet from the broswer. The cookie should be stored in the client side and I can get its expiring date from the cookie's persistent location of I.E. It seems that the date is set in terms of the servers'date. Also I do not want to restart the broswer to kill the cookie, because my goal is to invalidate the cookie for the ceratin period of client time, not the server time, which means I do not need to wait for the server expiring date being reached to invalidate these cookies.The application for the case is, trying invalidate user info cookie after period of inactivity on the client. So my question is: could it be implementable on the servlet on the server side. I can also do that by writing javascript on client side, but it would not be a safe way to do that. --- Christian Petersen <[EMAIL PROTECTED]> �����ģ�> 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 >
===== Sincerely Yours,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
