Class javax.servlet.http.Cookie represents a "Cookie", as used for session management with HTTP and HTTPS protocols.
Cookies are used to get user agents (web browsers etc) to hold small amounts of state associated with a user's web browsing.
Constructor
Cookie(String, String)
Defines a cookie with an initial name/value pair.
Methods
String getName()
setName(String)
Returns or sets the name of the cookie.
String getValue()
setValue(String)
Returns or sets the value of the cookie.
int getMaxAge()
setMaxAge(int)
Returns or sets the maximum specified age of the cookie.
boolean getSecure()
setSecure(boolean)
Indicates to the user agent that the cookie should only be sent using a secure protocol (https)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.