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 Did Oracle Release a New Version of Java Like Java 8 ?

What is the Difference Between Queue and Stack Data Structures in ...

What is the Use of a Dictionary Class in Java ?

How Can You Upload a Large File in JSP ?

Why Java Provides Garbage Collector ?