What are the difference between session and cookies in Servlet? Explain
Sessions | Cookies | |
---|---|---|
1. | Server-side files. | Client-side files. |
2. | Stores unlimited content in user's browser. | Stores limited content of limited users. |
3. | Data is not easy to modify. | Data is easy to modify. |
BY Best Interview Question ON 18 Jan 2019