How can a server control the lifetime of a cookie in a client's browser?
- Setting the Domain attribute
- Setting the Expires attribute
- Setting the Max-Age attribute
- Setting the Path attribute
The server can control the lifetime of a cookie by setting the Max-Age attribute, specifying the maximum age of the cookie in seconds.
Loading...
Related Quiz
- Filters can be used to implement ________, which is a common requirement in web applications.
- For file download, what Content-Type should be set in the servlet response?
- What is the primary interface for handling HTTP requests in Java servlets?
- In JDBC, what does Statement.setFetchSize(int rows) method influence?
- How can you retrieve a servlet's initialization parameters in the init method?