What is the significance of the path attribute in a cookie?
- It defines the cookie's value
- It indicates the cookie's path
- It sets the cookie's domain
- It specifies the cookie's name
The path attribute in a cookie is significant as it indicates the URL path for which the cookie is valid. The client sends the cookie only if the path matches the requested URL.
Loading...
Related Quiz
- What is the scope of servlet initialization parameters?
- When a servlet encounters an error during initialization, which method gets invoked next?
- Which of the following is a common practice for ensuring thread safety in servlets?
- To secure a servlet, developers often use _________ combined with _________ to restrict access.
- Which method is used to initialize a filter in the filter chain?