Session cookies and persistent cookies

99封情书 提交于 2019-12-06 00:28:56

as far as I concerned, what we send back from server to client is stored in user's hard disk, it's persistent cookie as you called. the session cookie stores some information on a conversation you make with websites, after you clear cache or restart your browser, the conversation information changed. When you visit a website, you don't send a session_id to the server because you don't have one yet. The server then generates a session_id and stores conversation information, session_id as key-value pair in server side, and return the session_id to client side, which stores in persistent cookies. This is the process in my eyes.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!