Java Reference
In-Depth Information
It returns this value:
java.lang.String
The setMaxAge() Method
public void setMaxAge(int value)
The setMaxAge() method sets the maximum age of the cookie. The cookie will expire after the
passed-in number of seconds. setMaxAge() returns no value and throws no exceptions.
It has one parameter:
C
int
The getMaxAge() Method
public int getMaxAge()
The getMaxAge() method returns the maximum age of the cookie in seconds. getMaxAge() has
no parameters and throws no exceptions.
It returns this value:
int
The setPath() Method
public void setPath(java.lang.String uri)
The setPath() method sets the valid path for the cookie. If the URL does not begin with the
passed-in value, it is not a valid path. setPath() returns no value and throws no exceptions.
It has one parameter:
java.lang.String
The getPath() Method
public java.lang.String getPath()
The getPath() method returns the URL prefix for which this cookie is targeted. getPath()
has no parameters and throws no exceptions.
It returns this value:
java.lang.String
The setSecure() Method
public void setSecure(boolean flag)
 
Search WWH ::




Custom Search