Http://hi.baidu.com/lanxigang/blog/item/de8bcf80170d81df9023d957.html
Cookie is very important in Web programming. As Ajax is widely used, Cookie applications become more and more common. Another special purpose is that for programmers who are
The similarities and differences between the cookie and session:A. Cookie mechanismCookies are small pieces of text that the server stores on the local machine and are sent to the same server with each request. The IETF RFC 2965 HTTP State
Before I introduce the main body, we'll introduce the basics of cookies
First understand what a cookie is
"Cookies are variables that are stored on the computer of the visitor. This cookie is sent whenever the same computer requests a page through
I. Differences between cookie and session mechanisms
Specifically, the cookie mechanism adopts the client-side persistence scheme, while the session mechanism adopts the server-side persistence scheme.
At the same time, we can also see that the
The difference between a cookie mechanism and a session mechanismIn particular, the cookie mechanism uses a scheme that maintains state on the client, while the session mechanism uses a scenario that maintains state on the server side.At the same
Ec (2); php effective methods for deleting cookies instructions for deleting cookies begin ----- boolsetcookie (stringname [, stringvalue [, intexpire [, stringpath [, stringdomain [, boolsecure]) to delete a cookie, you must ensure that its
I. Differences between cookie and session mechanisms
**************************************** **************************************** *****
Specifically, the cookie mechanism adopts the client-side persistence scheme, while the session mechanism
There are two methods to process cookies: Server (php, asp, etc.) and client (javascript ). in this tutorial, we will learn how to create cookies through php and javascript. HTTP is a stateless protocol, this means that you are independent of every
What is a cookie
A cookie is a mechanism for storing data on a remote browser side to track and identify the user. Simply put, a cookie is a text file that the Web server temporarily stores on the user's hard disk and is then read by a Web browser.
Take a good look at cookies (strongly recommended) and learn about cookies
Cookie Creation
Because HTTP is stateless, services on the server must be stateful. The initial purpose of Cookie creation is to store the status information on the web for
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.