首页| 论坛| 消息
主题:jsp实现cookie的使用
plmm发表于 2005-05-07 14:05
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

/** Sets six cookies: three that apply only to the current
* session (regardless of how long that session lasts)
* and three that persist for an hour (regardless of
* whether the browser is restarted).
*


* Taken from Core Servlets and JavaServer Pages
* from Prentice Hall and Sun Microsystems Press,
* http://www.coreservlets.com/.
* © 2000 Marty Hall; may be freely used or adapted.
*/

public class SetCookies extends HttpServlet {
public

下一页 (1/3)
回帖(0):

全部回帖(0)»
最新回帖
收藏本帖
发新帖