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.

Constructors

public Cookie( String name )
public Cookie( String name, String value )

Methods

equals( Object obj ) returns boolean
getName( ) returns String
getPath( ) returns String
getValue( ) returns String
hashCode( ) returns int
setComment( String comment ) returns void
setMaxAge( long deltaSeconds ) returns void
setPath( String path ) returns void
setSecure( boolean secure ) returns void
setVersion( int newVersion ) returns void
toString( ) returns String