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

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

Public Methods

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