Cookie Class

Creates a cookie, a small amount of information sent by a servlet to a Web browser, saved by the browser, and later sent back to the server. A cookie's value can uniquely identify a client, so cookies are commonly used for session management.


public Cookie( String name, String value )
public Cookie( javax.servlet.http.Cookie cookie )


equals( Object obj ) returns boolean
getCookie( ) returns javax.servlet.http.Cookie
getName( ) returns String
getPath( ) returns String
getValue( ) returns String
hashCode( ) returns int
setComment( String comment ) returns void
setMaxAge( int deltaSeconds ) returns void
setPath( String path ) returns void
setSecure( boolean secure ) returns void
setVersion( int newVersion ) returns void
toString( ) returns String