GIAC
GSNA · Question #58
Which of the following methods is used to get a cookie from a client? Note: Here, request is a reference of type HttpServletRequest, and response is a reference of type HttpServletResponse.
Sign in or unlock GSNA to reveal the answer and full explanation for question #58. The question stem and answer options stay visible for context.
Database & Application Auditing
Question
Which of the following methods is used to get a cookie from a client? Note: Here, request is a reference of type HttpServletRequest, and response is a reference of type HttpServletResponse.
Options
- ACookie [] cookies = request.getCookies();
- BCookie [] cookies = request.getCookie(String str)
- CCookie [] cookies = response.getCookie(String str)
- DCookie [] cookies = response.getCookies()
Unlock GSNA to see the answer
You've previewed enough free GSNA questions. Unlock GSNA for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#HTTP cookies#HttpServletRequest#Java servlet#web application