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

What are the Differences Between Comparable and Comparator in Jav ...

What is the Reason to Organize Classes and Interfaces in a Packag ...

How Do You Debug Code in JSP ?

How Can You Determine If Your Program Has a Deadlock in Java ?

What is the Difference Between Array and ArrayList in Java ?