Differences between cookies and sessions?

前端 未结 9 1838
时光取名叫无心
时光取名叫无心 2020-11-28 00:42

I am training in web developement and am learning about JSP & Servlets. I have some knowledge of HttpSession - I have used

9条回答
  •  青春惊慌失措
    2020-11-28 01:01

    Cookies and session both store information about the user (to make the HTTP request stateful) but the difference is that cookies store information on the client-side (browser) and sessions store information on the server-side. A cookie is limited in the sense that it stores information about limited users and only stores limited content for each user. A session is not limit in such a way.

提交回复
热议问题