Order the Book

coreservlets
Class LongLivedCookie

java.lang.Object
  |
  +--javax.servlet.http.Cookie
        |
        +--coreservlets.LongLivedCookie

public class LongLivedCookie
extends Cookie

Cookie that persists 1 year. Default Cookie doesn't persist past current session.

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.


Field Summary
static int SECONDS_PER_YEAR
           
 
Constructor Summary
LongLivedCookie(String name, String value)
           
 
Methods inherited from class javax.servlet.http.Cookie
clone, getComment, getDomain, getMaxAge, getName, getPath, getSecure, getValue, getVersion, setComment, setDomain, setMaxAge, setPath, setSecure, setValue, setVersion
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SECONDS_PER_YEAR

public static final int SECONDS_PER_YEAR
Constructor Detail

LongLivedCookie

public LongLivedCookie(String name,
                       String value)

Order the Book

Order
CSAJSP @ amazon.com

Return to Top-Level Source Code Archive