Describe the difference between session cookies and persistent cookies.
- Persistent cookies are often used for user authentication
- Persistent cookies are temporary and expire after the browser is closed
- Session cookies are stored permanently on the client-side
- Session cookies expire after a specified time
Session cookies are temporary and expire when the browser is closed, while persistent cookies are stored on the client-side for a longer duration, typically with an expiration date set by the server.
Loading...
Related Quiz
- Can a servlet's destroy() method be overridden? If yes, what should be considered?
- What is the impact of synchronization on servlet performance?
- In the filter chain, the __________ method is used to perform the actual filtering.
- What is the primary purpose of garbage collection in Java?
- The __________ method is used to initialize the filter with configuration parameters.