A web application needs to remember user preferences across sessions. Which approach using cookies is most suitable?
- HttpOnly Cookies
- Persistent Cookies
- Secure Cookies
- Session Cookies
Persistent Cookies are suitable for remembering user preferences across sessions as they persist even after the user closes the browser.
Loading...
Related Quiz
- How do you specify the URL patterns to which a filter should apply?
- What is a significant difference in how session data is handled between RequestDispatcher's forward and HttpServletResponse's sendRedirect?
- To handle multiple file uploads, a servlet may use the __________ API.
- How does a filter modify the response of a servlet or JSP in the filter chain?
- What is the scope of servlet initialization parameters?