Question 1 (0.2 points) A session object is created every time a browser makes a
ID: 3693430 • Letter: Q
Question
Question 1 (0.2 points) A session object is created every time a browser makes a request for a web page every time a browser requests a servlet every time a browser requests a jsp the first time a browser makes a request to a site Save Question 2 (0.2 points) A servlet can retrieve the current session object by using the getSession method of the HttpSession class O response object O the request object O the ServletContext object Save Question 3 (0.2 points) The current session object is available only to JSPs only to servlets to both servlets and JSPsExplanation / Answer
Question 1
Session object is created every time a browser request a servlet.
Question 2
Servlet retrieve current session of object by using the getsession method
of HTTP Session Class.
Question 3
The current session object is available to both servlets and JSPs.
Question 4
Which of the following statements causes an error.
String name = session.getAttribute("fullName");
Question 5
Cookies are stored on the client.
Question 6
Persistent cookies exists after the session ends.
Question 7
The cookie named mediaCookie in the following statement media Cookie.setPath("/"); be
accessed by only the current directory.
Question 8
The following link demonstrates how to use URL rewriting.
Question 9
The advantages of using hidden field over url rewriting to
pass parameter from the browser to server are a hidden field
can contain spaces and other special characters that are
difficult to work with when using URL rewriting.
Question 10
To delete a persistent cookie set the age of the cookie to -1.
Question 11
when you set an attribute in the request object,the attributes are available until the session time over.