The setMaxAge method sets the _________ of a cookie in seconds.
- age
- duration
- expiration time
- size
The setMaxAge method sets the expiration time of a cookie in seconds, specifying how long the cookie should persist.
Loading...
Related Quiz
- The __________ method is used by an HTTP servlet to handle PUT requests.
- A company is deciding between horizontal and vertical scaling. What factors should they consider in their decision?
- Which of the following is a recommended approach to handle database connections in servlets?
- Which Java API is used for creating WebSocket applications in Java EE?
- How can servlets be effectively used to implement the front controller pattern in an MVC application?