Secure Cookie Handling
Secure Cookie Handling refers to best practices and techniques employed when using cookies to store and transmit sensitive information, such as authentication or session data. Common practices include setting the 'secure' attribute for cookies, ensuring they are transmitted over HTTPS only and prev…
CompTIA Security+ - Secure Cookie Handling Example Questions
Test your knowledge of Secure Cookie Handling
Question 1
You want to ensure that your web application complies with the strict data handling regulations set forth by your industry. All cookies containing personally identifiable information (PII) must be encrypted. Which attribute should you apply?
Question 2
You are a web developer for a bank and you need to ensure cookies storing sensitive user information are as secure as possible. Which attribute should you include to prevent the cookie from being accessed by client-side scripts?
Question 3
As a developer, you are tasked with mitigating session hijacking attempts on a web application. How should cookies be set to prevent them from being intercepted on insecure connections?