Differences between cookies and sessions?

前端 未结 9 1796
时光取名叫无心
时光取名叫无心 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:08

    Google JSESSIONID. This will explain how the Servlet API initially uses URL re-writing and then, if cookies are enabled, cookies to manage sessions.

    HTTP is stateless so the client browser must send the id of its session to the server with each request. The server, through whatever means, uses this id to retrieve any data for that session making it available for the lifetime of the request.

提交回复
热议问题