Java Reference
In-Depth Information
4. Scroll to the Constructor Summary table. Click the link for the Cookie()
constructor. When the constructor definition is displayed, read the definition
and then drag through the definition to select it. Print a copy of the
definition.
5. Scroll to the Method Summary table. Click the link for the setMaxAge()
method. When the method definition is displayed, read the definition and
then drag through the definition to select it. Print a copy of the definition.
6. Based on your reading, answer the following questions:
a. What is the total number of cookies each Web browser is expected to
support?
b. Is there a limit on cookie size? If so, what is it?
c. In what units is the maximum age of a cookie expressed?
d. What does a positive max age mean? What does a negative max age mean?
e. Can a cookie value be changed after the cookie is created?
f.
What reason, if any, is there to set a zero max age for a cookie?
Class Cookie
page
Cookie link
first three
paragraphs
FIGURE 12-91
 
Search WWH ::




Custom Search