由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - How can I void a cookie, and delete it from the browser?(FAQ)
相关主题
有没有办法在browser第一次访问的时候知道是不是支持cookie?///:~ 有什么意义
Re: 有没有办法在browser第一次访问的时候知道是不是支持cookie?Re: how to integrate java api doc with e
JAVA新手问题请教文件是要放在同目录下的吗?
How do I make cookies expire after a set time period?(FAQ)how can I test own local IP address
How do I send cookies from a servlet?how to make an html file in Eclipse?
Re: GridLayout一问[合集] 谁能解释一下这里的protected specifier
kaffe javacAn interesting thing about java generics-do not laugh at me if u think it too basic
土问题:一个文件路经的简单问题,帮帮忙weird problem with DynaForm on struts
相关话题的讨论汇总
话题: cookie话题: browser话题: void话题: faq话题: delete
进入Java版参与讨论
1 (共1页)
b*g
发帖数: 644
1
You can specify an expiration date, using the
setMaxTime(int) method of
javax.servlet.http.Cookie. Specifying a expiration time of
zero will void
the cookie, and delete it from the browser.
// Expire the cookie immediately
cookie.setMaxTime( 0 );
// Send cookie back to the browser to void it
response.addCookie(cookie);
1 (共1页)
进入Java版参与讨论
相关主题
weird problem with DynaForm on strutsHow do I send cookies from a servlet?
JavaFx languageRe: GridLayout一问
RSAkaffe javac
in eclipse, how do you use inter dependencies?土问题:一个文件路经的简单问题,帮帮忙
有没有办法在browser第一次访问的时候知道是不是支持cookie?///:~ 有什么意义
Re: 有没有办法在browser第一次访问的时候知道是不是支持cookie?Re: how to integrate java api doc with e
JAVA新手问题请教文件是要放在同目录下的吗?
How do I make cookies expire after a set time period?(FAQ)how can I test own local IP address
相关话题的讨论汇总
话题: cookie话题: browser话题: void话题: faq话题: delete