阿摩線上測驗 登入

試題詳解

試卷:無年度 - Java EE 6 Web Component Developer Certified Expert Exam:1z0-899(1-50)#84202 | 科目:OCE

試卷資訊

試卷名稱:無年度 - Java EE 6 Web Component Developer Certified Expert Exam:1z0-899(1-50)#84202

科目:OCE

1 A web application uses a cookies to track a client as it navigates through the pages that constitutes the application. Which code snippet can be used by the web application to reduce the chance of a cross-site scripting attack by setting some property of the cookie before returning it to the client?
(A) cookie.setHttpOnly(true)
(B) cookie.setMaxAge(3600)
(C) cookie.setPath("/")
(D) cookie.setSecure(true)
正確答案:登入後查看