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 is the Difference Between wait and sleep Methods in Java ?

What is the Difference Between Sleep and Wait Methods in Java ?

How Strategy Design Pattern is Different From State Design Patter ...

How Can We Improve the Performance of IdentityHashMap in Java ?

What is the Difference Between a Set and a Map in Java ?