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 Implement ApplicationContext in Spring Framework ?

How Will You Include a Static File in a JSP Page ?

What is the Lifecycle Stages of JSP ?

What are the Situations in Which You Choose HashSet or TreeSet in ...

Why ListIterator Has add Method But Iterator Does Not Have in Jav ...