0x00 IntroductionIn the history of Web technology, the advent of cookie technology is a major change. However, Cookie technology is a very controversial technology, from the date it was born into a vast network of users and web developers of a
Cookies can be kept locally for a long time and uploaded to a WAN host.
Cookies can be kept locally for a long time and uploaded to a WAN host.
PHP Code
$expire =time () +360000000;setcookie (' Member[userid] ', $userid, $expire);
Bloggers said : In this article, the main introduction of the cookie mechanism and session mechanism, and focus on the difference between the two, hoping to help you have a more in-depth cookie and session of a better understanding. Body Cookie
The most commonly used method of cookies in ASP, please take notes:
1. How to write cookies.
Response.Cookies ("field name") = variable or string, for example:
Response.Cookies ("name2") = "Dingdang"
2. How to set the cookie time.
Response.Cookies ("
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
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
The difference between cookie mechanism and session mechanism*************************************************************************************Specifically, the cookie mechanism is a scheme for maintaining state on the client side, and the
Technical Summary of the news publishing system (I) Cookies and sessions, cookies and sessions
This article is followed by the previous blog, the Niuke news and publishing system-the technical summary. I always feel that there is a lot of knowledge
Session tracking is a common technique used in Web programs to track a user's entire session . Common session tracking techniques are cookies and sessions. The cookie determines the user's identity by logging information on the client , and
0. Introduction, why do we want cookies and session
Because the HTTP request is stateless (unable to record the user's login status, etc.), a mechanism is needed to save information such as the user's login status, and the next time you visit the
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.