(Php,cookie) basic use and fundamentals of

Source: Internet
Author: User

(1) A technology that allows server-side scripting to store data on the browser side . Cookies are actually a technique for browsers .

(2) Features: Allows the server to send instructions to the browser to manage the cookie data stored on the browser side.

Although the data exists in the browser, the browser does not decide what to store within itself.

If the browser stores the cookie data stored by a server, it will carry the stored cookie data to the server when it wants to request the server.

(3) Cookie display:

If, for the second time, the request server makes a request to re-store the cookie value, the content of the cookie is updated in the browser, but if the server does not give the instruction in response to the second request, the value of the cookie is not changed.

(4) Basic operation of Cookies:

      

(1) Step one; set up and delete changes:

        

(2) Step two, get the value of the cookie:

          

(Can be seen by looking at the cookie in Firebug)

(Php,cookie) basic use and fundamentals of

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.