What is the Main Difference Between a Session and Cookie in JSP ?

A Session is always stored at the Server side. In JSP, session is a built-in object in JSP container..

A Cookie is always stored at the client side.

We can use both the methods for Session tracking. But Cookie method needs permission from user for storing cookie at the client location.



You May Interest

Why Do We Use Nested Classes in Java ?

How Will You Implement a Thread Safe JSP Page ?

What is the Difference Between a Nested Class and an Inner Class ...

What is the Lifecycle Stages of JSP ?

Why Do We Use JSP Instead of Servlet in Java ?