In a scenario where a cookie is used for authentication, what measures should be taken to enhance security?
- All of the above
- Encrypt the cookie data
- Store minimal information in the cookie
- Use HTTPS
To enhance security in cookie-based authentication, it's crucial to use HTTPS, store minimal information, and encrypt the cookie data.
Loading...
Related Quiz
- In a situation where multiple asynchronous tasks are initiated by a servlet, how is the completion of these tasks managed?
- In a scenario where a transaction involves multiple SQL queries, how should exceptions be handled to ensure that either all queries succeed or none do?
- The __________ pattern is often used to manage shared resources in a thread-safe manner in servlets.
- In HTTP servlets, the _________ method is used to send error responses back to the client.
- What happens if the init() method of a Servlet throws an exception?