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

How Will You Use a Cookie in JSP ?

What is the Difference Between a Cookie and a Session Object in J ...

How Will You Implement Error Page in JSP ?

How Can You Make an Object Eligible for Garbage Collection in Jav ...

What are the Differences Between Collection and Collections in Ja ...