What is the content storage mechanism in the answer box?

Source: Internet
Author: User
Zhihu will trigger an event to send a request to the server to save the current input content if the focus is lost in the answer box. The machine and the browser can get the information here, but it won't work if the cache is deleted. _ xsrf: the cookie used to get data. _ What is the session recorded by xsrf?



Zhihu answers a question every time the answer box loses focus, an event is triggered to send a request to the server to save the current input content.
Both the machine and the browser can be obtained here.
But it won't work if you delete the cache.
Is it because data is obtained through the cookie _ xsrf?
_ What is session recorded by xsrf?

Reply content:



Zhihu answers a question every time the answer box loses focus, an event is triggered to send a request to the server to save the current input content.
Both the machine and the browser can be obtained here.
But it won't work if you delete the cache.
Is it because data is obtained through the cookie _ xsrf?
_ What is session recorded by xsrf?

Session_id is the premise. The session ID of the browser

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.